You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
soapbox/webpack.config.js

14 lines
324 B

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);
}