https://github.com/webpack/webpack/issues/2254 --env 变量 Yes this is intended. Custom argumens can be passed via --env prefix, i. e. --env.compress. Than export a function from the webpack.config.js and it's called with the env parameter. module.expor…