gamja: compress better
This commit is contained in:
parent
39eb845316
commit
dac9650b65
@ -39,15 +39,15 @@ buildNpmPackage rec {
|
|||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
data-compressed =
|
data-compressed =
|
||||||
runCommand "soju-data-compressed" {
|
runCommand "gamja-compressed" {
|
||||||
nativeBuildInputs = [brotli zopfli xorg.lndir];
|
|
||||||
} ''
|
} ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
lndir ${gamja}/ $out/
|
${xorg.lndir}/bin/lndir ${gamja}/ $out/
|
||||||
|
|
||||||
find $out \
|
find $out \
|
||||||
-name '*.css' -or \
|
-name '*.css' -or \
|
||||||
-name '*.js' -or \
|
-name '*.js' -or \
|
||||||
|
-name '*.json' -or \
|
||||||
-name '*.map' -or \
|
-name '*.map' -or \
|
||||||
-name '*.webmanifest' -or \
|
-name '*.webmanifest' -or \
|
||||||
-name '*.html' | \
|
-name '*.html' | \
|
||||||
|
Loading…
Reference in New Issue
Block a user