sticker-market-blog/webpack.config.js

12 lines
389 B
JavaScript
Raw Permalink Normal View History

2019-05-19 12:48:03 +00:00
const webpackMerge = require('webpack-merge');
const common = require('./webpack/webpack.common');
const envs = {
development: 'dev',
production: 'prod',
};
/* eslint-disable global-require,import/no-dynamic-require */
const env = envs[process.env.NODE_ENV || 'development'];
const envConfig = require(`./webpack/webpack.${env}.js`);
module.exports = webpackMerge(common, envConfig);