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