Mangane/webpack.config.js
2022-05-11 16:06:35 -05:00

13 lines
338 B
JavaScript

require('dotenv').config();
const { NODE_ENV } = process.env;
switch (NODE_ENV) {
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);
}