Make sprites before CSS
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 2 Apr 2015 08:12:36 +0000 (11:12 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 2 Apr 2015 08:12:36 +0000 (11:12 +0300)
make_static.PL

index 4d737fa3d7c330c28a8bb9c477f941c5e9ca2b10..4857bf0ccd37e2a367a75d1b037070df167023fa 100644 (file)
@@ -68,6 +68,14 @@ sub make_js {
        gzip_file 'static/js.js';
 }
 
+my $sprite_mtime = -M 'static/logos.png' // 0;
+for (<logos/*>) {
+       if (!$sprite_mtime || $sprite_mtime > -M) {
+               make_sprite;
+               last
+       }
+}
+
 my $css_mtime = -M 'static/css/slate.css' // 0;
 for (<css/*>, <css/themes/*>) {
        if (!$css_mtime || $css_mtime > -M) {
@@ -84,14 +92,6 @@ for (<js/*>) {
        }
 }
 
-my $sprite_mtime = -M 'static/logos.png' // 0;
-for (<logos/*>) {
-       if (!$sprite_mtime || $sprite_mtime > -M) {
-               make_sprite;
-               last
-       }
-}
-
 package
   Local::CSS::SpriteMaker;
 
This page took 0.011064 seconds and 4 git commands to generate.