Thanks for a very well written article. Not sp scary as I thought (-:
Martin Herløv Andersen
1

Thanks!

Not sure I completely understand what you’re asking for, but you can use process.env.NODE_ENV within webpack.config.js to configure Webpack to behave differently in development, test, and production mode:

let config = {
// My config
};

switch(process.env.NODE_ENV) {
case 'development':
config.whatever = 'whatever';
break;

case 'test':
config.whatever = 'something different';
break;

case 'production':
config.whatever = 'something also different';
break;
}

module.exports = config;

Is that helpful?