2016-06-03 15:08:03 -05:00
|
|
|
switch (process.env.NODE_ENV) {
|
|
|
|
case 'prod':
|
|
|
|
case 'production':
|
2016-09-12 13:43:44 -05:00
|
|
|
module.exports = require('./config/webpack.prod')({env: 'production'})
|
2016-06-03 15:08:03 -05:00
|
|
|
break
|
|
|
|
|
|
|
|
case 'test':
|
|
|
|
case 'testing':
|
2016-09-12 13:43:44 -05:00
|
|
|
module.exports = require('./config/webpack.test')({env: 'test'})
|
2016-06-03 15:08:03 -05:00
|
|
|
break
|
|
|
|
|
|
|
|
case 'dev':
|
|
|
|
case 'development':
|
|
|
|
default:
|
2016-09-12 13:43:44 -05:00
|
|
|
module.exports = require('./config/webpack.dev')({env: 'development'})
|
2016-06-03 15:08:03 -05:00
|
|
|
}
|