Skip to content

Commit

Permalink
fix --minify-urls in CLI (#957)
Browse files Browse the repository at this point in the history
Fix a bug where the "--minify-url" command-line option was ignored.
  • Loading branch information
damiendart authored and alexlamsl committed Aug 22, 2018
1 parent 2d34ad5 commit 1f8df44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f8df44

Please sign in to comment.