soapbox/webpack.config.js

14 wiersze
323 B
JavaScript
Czysty Zwykły widok Historia

require('dotenv').config();
const { NODE_ENV } = process.env;
switch(NODE_ENV) {
case 'development':
case 'production':
case 'test':
2021-09-17 16:26:57 +00:00
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);
}