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