From f65bc88e9c4cfa7f17a32590728a4531a2356bbc Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 11 Feb 2014 09:38:47 +0200 Subject: [PATCH] Minify javascript --- lib/Gruntmaster/Page/JS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Page/JS.pm b/lib/Gruntmaster/Page/JS.pm index 9e78192..b8ddafb 100644 --- a/lib/Gruntmaster/Page/JS.pm +++ b/lib/Gruntmaster/Page/JS.pm @@ -15,7 +15,7 @@ sub generate{ debug $env => ""; my $js; $js .= read_file $_ for ; - [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]] } -- 2.39.2