preserveHTML -> createHTML
commit4a4eecc1abf30bf2048b495b186272ea401bc12e
authoriko <ilyakooo0@gmail.com>
dateFri 19 Nov 2021, 21:40 (5 years ago)
parent958eee5
default.nix+2−2
@@ -2,7 +2,7 @@
22, closurecompiler ? pkgs.closurecompiler
33, zopfli ? pkgs.zopfli
44, useZopfli ? true
5−, preserveHTML ? false
5+, createHTML ? true
66, allJsPath ? "/bin/*/all.js"
77}:
88input:
@@ -11,7 +11,7 @@ pkgs.runCommand "${input.name}-optimized"
1111 shopt -s globstar
1212 mkdir $out
1313
14− cp ${if preserveHTML then "${input}/bin/*/index.html" else ./index.html} $out/index.html
14+ ${if createHTML then "cp ${input}/bin/*/index.html $out/index.html" else ""}
1515
1616 cp -afv ${input}/* $out
1717