Prior to webpack 2 I was able to parse custom command line options in the webpack config file. With webpack 2 any unknown option causes the build to fail most likely because yargs is executed in strict mode.
The use case here is for passing in arguments to be parsed in the config file before starting webpack. We do this to provide users the ability to perform custom builds by including/excluding modules or groups of modules. For example:
npm run dev -- --include player_flash,ads
I don’t recall this being a supported feature in webpack 1 but is there any reason why it shouldn’t be? Is there a better way of doing this?