node-minify-all
Version:
Minifies CSS, JavaScripts and Images under the current directory tree.
22 lines (17 loc) • 400 B
JavaScript
/*
* node-minify-all - node cli.
* https://github.com/SnigBhaumik/node-minify-all
*
* Copyright (c) 2017 Snig Bhaumik.
* MIT.
*/
;
var yargs = require('yargs');
var utils = require('./lib/utils');
var argv = yargs.argv;
var opts = {
rootpath: argv.rootpath || 'docroot',
mode: argv.mode || 'all',
backups: argv.backups || false
};
utils.process(opts);