public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d34ad5
)
fix `--minify-urls` in CLI (#957)
author
Damien Dart
<damiendart@pobox.com>
Wed, 22 Aug 2018 22:15:51 +0000
(23:15 +0100)
committer
Alex Lam S.L
<alexlamsl@gmail.com>
Wed, 22 Aug 2018 22:15:51 +0000
(06:15 +0800)
Fix a bug where the "--minify-url" command-line option was ignored.
cli.js
patch
|
blob
|
history
diff --git
a/cli.js
b/cli.js
index
84db90b
..
2ec6102
100755
(executable)
--- a/
cli.js
+++ b/
cli.js
@@
-197,7
+197,7
@@
program.arguments('[files...]').action(function(files) {
function createOptions() {
var options = {};
mainOptionKeys.forEach(function(key) {
- var param = program[camelCase(key)];
+ var param = program[
key === 'minifyURLs' ? 'minifyUrls' :
camelCase(key)];
if (typeof param !== 'undefined') {
options[key] = param;
}