projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f06ba03
)
Minify javascript
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 11 Feb 2014 07:38:47 +0000
(09:38 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 11 Feb 2014 07:38:47 +0000
(09:38 +0200)
lib/Gruntmaster/Page/JS.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/JS.pm
b/lib/Gruntmaster/Page/JS.pm
index 9e78192d0b12575b9107cf57f3207330da93c19b..b8ddafba37e714c23349ca4f24fb494c96fd52cc 100644
(file)
--- 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 <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.