UNPKG

@rockpack/compiler

Version:

The easiest webpack config generator.

19 lines (14 loc) 367 B
const yargs = require('yargs'); const { hideBin } = require('yargs/helpers'); const argv = yargs(hideBin(process.argv)).parse(); const addArgs = (conf) => { if (argv.analyzer) { if (global.ISOMORPHIC && conf.__isIsomorphicBackend) { conf.analyzer = false; } else { conf.analyzer = true; } } return conf; }; module.exports = addArgs;