Minify javascript
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 11 Feb 2014 07:38:47 +0000 (09:38 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 11 Feb 2014 07:38:47 +0000 (09:38 +0200)
lib/Gruntmaster/Page/JS.pm

index 9e78192d0b12575b9107cf57f3207330da93c19b..b8ddafba37e714c23349ca4f24fb494c96fd52cc 100644 (file)
@@ -15,7 +15,7 @@ sub generate{
        debug $env => "";
        my $js;
        $js .= read_file $_ for <js/*.js>;
-       [200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [$js] ]
+       [200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=604800', 'X-Forever' => 1], [minify $js] ]
 }
 
 sub variants{ [[js => 1, 'application/javascript', undef, undef, undef, undef]] }
This page took 0.01073 seconds and 4 git commands to generate.