UNPKG

react-compress-dist

Version:

Easy way to compress your JS bundle when you compile build folder

21 lines (18 loc) 519 B
const defaultConfig = require('./defaultConfig'); var argv = require('yargs/yargs')(process.argv.slice(2)) .option('directory', { alias: 'd', description: 'Provide a path to your build directory.', default: defaultConfig.directory, type: 'string', }) .option('config', { alias: 'c', description: 'Provide a path to your config file.', default: 'react-compress.json', type: 'string', }) .help() .alias('help', 'h').argv; module.exports = argv; export {}