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:
8eab110
)
Use brotli in make_static.PL if available
author
Marius Gavrilescu
<marius@ieval.ro>
Sun, 19 Mar 2017 13:20:30 +0000
(15:20 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Sun, 19 Mar 2017 13:20:30 +0000
(15:20 +0200)
make_static.PL
patch
|
blob
|
blame
|
history
diff --git
a/make_static.PL
b/make_static.PL
index f599a56b5db514f6b15e87a1e9ae71b89d4afa2b..e63b59f9608e035ddd1efdd54d44979a52035505 100644
(file)
--- a/
make_static.PL
+++ b/
make_static.PL
@@
-15,7
+15,9
@@
mkdir 'static/js';
sub gzip_file {
my ($file) = @_;
+ my $brotli = which 'brotli';
my $zopfli = which 'zopfli';
+ system $brotli => '--input', $file, '--output', "$file.br" if $brotli;
system $zopfli => $file if $zopfli;
gzip $file => "$file.gz", -Level => 9, Minimal => 1 unless $zopfli;
}
This page took
0.021602 seconds
and
4
git commands to generate.