1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
switch (process.env.NODE_ENV) { case 'prod': case 'production': module.exports = require('./config/webpack.prod') break case 'test': case 'testing': module.exports = require('./config/webpack.test') break case 'dev': case 'development': default: module.exports = require('./config/webpack.dev') }