Skip to content

Commit

Permalink
Update usemin to 0.6.0 and fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Yeung committed Mar 20, 2020
1 parent 53051c2 commit add12ef
Show file tree
Hide file tree
Showing 3 changed files with 1,686 additions and 18 deletions.
24 changes: 12 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,41 @@ var argv = require('yargs')
alias: 'dest',
demand: 'Please specify the output directory',
describe: 'Output directory for compressed output files',
type: 'string'
type: 'string',
},
'o': {
alias: 'output',
describe: 'HTML output file',
type: 'string'
type: 'string',
},
'htmlmin': {
default: false,
describe: 'Also minifies the input HTML file',
type: 'boolean'
type: 'boolean',
},
'rmlr': {
alias: 'removeLivereload',
default: false,
describe: 'Remove livereload script',
type: 'boolean'
type: 'boolean',
},
'noprocess': {
default: false,
describe: 'Do not process files, just replace references',
type: 'boolean'
type: 'boolean',
},
'c': {
alias: 'config',
describe: 'Config file for UglifyJS, CleanCSS and htmlmin',
type: 'string'
type: 'string',
},
'listblocks': {
default: 'false',
describe: ('Write blocks to stdout or filename.json.\n' +
'E.g., --listblocks\n.' +
' --listblocks blocks.json'),
type: 'string'
}
type: 'string',
},
})
.demand(1)
.argv;
Expand All @@ -66,10 +66,10 @@ if (argv.listblocks !== 'false') {
console.log(blocks);
} else {
fs.writeFile(argv.listblocks, blocks, function (err) {
if (err) {
return console.error(err);
}
});
if (err) {
return console.error(err);
}
});
}
}

Expand Down
Loading

0 comments on commit add12ef

Please sign in to comment.