Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make sure css assets are listed before less (by wrapping last)
  • Loading branch information
haarg committed Sep 23, 2014
1 parent d555cff commit 644fd63
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app.psgi
Expand Up @@ -159,11 +159,6 @@ if ($dev_mode) {
};
}
else {
for my $assets ( \@js_files, \@css_files ) {
$app = Plack::Middleware::Assets->wrap( $app,
files => [ map {"root$_"} @$assets ] );
}

# Only need for live
my $cache = CHI->new(
driver => 'File',
Expand All @@ -184,6 +179,10 @@ else {
],
);

for my $assets ( \@js_files, \@css_files ) {
$app = Plack::Middleware::Assets->wrap( $app,
files => [ map {"root$_"} @$assets ] );
}
}

# Handle surrogate (fastly caching)
Expand Down

0 comments on commit 644fd63

Please sign in to comment.