I wanted to have some additional control from within the webpack.config.js and preset some of the command line options as well as options that are not exposed inside the config.
Is it possible to have the options object passed to the configuration object and override the cli/defaults?
Seems the options are set in 2 files from what I examined bin/convert-argv.js and bin/webpack.js. For example I didn't want to exclude all the default modules from the compilation listing and yet have the array elements customized so I added a function in my config like this:
var argsOutput = function(outputOptions) {
outputOptions.exclude = ['node_modules', 'jam', 'components'];
outputOptions.errorDetails = true;
};
Then I call it from webpack.js and have some of the output options preset.
I wanted to have some additional control from within the webpack.config.js and preset some of the command line options as well as options that are not exposed inside the config.
Is it possible to have the options object passed to the configuration object and override the cli/defaults?
Seems the options are set in 2 files from what I examined bin/convert-argv.js and bin/webpack.js. For example I didn't want to exclude all the default modules from the compilation listing and yet have the array elements customized so I added a function in my config like this:
Then I call it from webpack.js and have some of the output options preset.