mirror of
https://github.com/ilyakooo0/ghcjs-optimizer.git
synced 2024-11-22 09:59:30 +03:00
preserveHTML -> createHTML
This commit is contained in:
parent
958eee5a28
commit
4a4eecc1ab
@ -2,7 +2,7 @@
|
||||
, closurecompiler ? pkgs.closurecompiler
|
||||
, zopfli ? pkgs.zopfli
|
||||
, useZopfli ? true
|
||||
, preserveHTML ? false
|
||||
, createHTML ? true
|
||||
, allJsPath ? "/bin/*/all.js"
|
||||
}:
|
||||
input:
|
||||
@ -11,7 +11,7 @@ pkgs.runCommand "${input.name}-optimized"
|
||||
shopt -s globstar
|
||||
mkdir $out
|
||||
|
||||
cp ${if preserveHTML then "${input}/bin/*/index.html" else ./index.html} $out/index.html
|
||||
${if createHTML then "cp ${input}/bin/*/index.html $out/index.html" else ""}
|
||||
|
||||
cp -afv ${input}/* $out
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user