From: Marius Gavrilescu Date: Thu, 2 Apr 2015 08:12:36 +0000 (+0300) Subject: Make sprites before CSS X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=7fd2e6a5ebb2372179f1ac5ef7423d71a68874e4;p=plack-app-gruntmaster.git Make sprites before CSS --- diff --git a/make_static.PL b/make_static.PL index 4d737fa..4857bf0 100644 --- a/make_static.PL +++ b/make_static.PL @@ -68,6 +68,14 @@ sub make_js { gzip_file 'static/js.js'; } +my $sprite_mtime = -M 'static/logos.png' // 0; +for () { + if (!$sprite_mtime || $sprite_mtime > -M) { + make_sprite; + last + } +} + my $css_mtime = -M 'static/css/slate.css' // 0; for (, ) { if (!$css_mtime || $css_mtime > -M) { @@ -84,14 +92,6 @@ for () { } } -my $sprite_mtime = -M 'static/logos.png' // 0; -for () { - if (!$sprite_mtime || $sprite_mtime > -M) { - make_sprite; - last - } -} - package Local::CSS::SpriteMaker;