config.js 256 B

1234567
  1. const webpackMerge = require('webpack-merge');
  2. const loadSharedConfig = require('./configs/shared');
  3. const loadModeConfig = env => require(`./configs/${env.mode}`)(env);
  4. module.exports = env =>
  5. webpackMerge(loadSharedConfig(env), loadModeConfig(env));