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