2020-04-26 10:49:20 -07:00
|
|
|
require('dotenv').config();
|
|
|
|
|
|
|
|
const { NODE_ENV } = process.env;
|
|
|
|
|
2022-05-11 10:40:34 -07:00
|
|
|
switch (NODE_ENV) {
|
2022-05-11 14:06:35 -07:00
|
|
|
case 'development':
|
|
|
|
case 'production':
|
|
|
|
case 'test':
|
|
|
|
module.exports = require(`./webpack/${NODE_ENV}`); break;
|
|
|
|
default:
|
|
|
|
console.error('ERROR: NODE_ENV must be set to either `development`, `test`, or `production`.');
|
|
|
|
process.exit(1);
|
2020-04-26 10:49:20 -07:00
|
|
|
}
|