diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/html-minifier/cli.js | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) | |
download | wallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz |
update packages
Diffstat (limited to 'node_modules/html-minifier/cli.js')
-rwxr-xr-x | node_modules/html-minifier/cli.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/node_modules/html-minifier/cli.js b/node_modules/html-minifier/cli.js index 1f208bd59..84db90b8c 100755 --- a/node_modules/html-minifier/cli.js +++ b/node_modules/html-minifier/cli.js @@ -139,13 +139,16 @@ var mainOptions = { var mainOptionKeys = Object.keys(mainOptions); mainOptionKeys.forEach(function(key) { var option = mainOptions[key]; - key = '--' + paramCase(key); if (Array.isArray(option)) { - var optional = option[1] === parseJSON; - program.option(key + (optional ? ' [value]' : ' <value>'), option[0], option[1]); + key = key === 'minifyURLs' ? '--minify-urls' : '--' + paramCase(key); + key += option[1] === parseJSON ? ' [value]' : ' <value>'; + program.option(key, option[0], option[1]); + } + else if (~['html5', 'includeAutoGeneratedTags'].indexOf(key)) { + program.option('--no-' + paramCase(key), option); } else { - program.option(key, option); + program.option('--' + paramCase(key), option); } }); program.option('-o --output <file>', 'Specify output file (if not specified STDOUT will be used for output)'); |