const merge = require('webpack-merge') const common = require('./webpack.common.js') module.exports = common.map( config => merge(config, { mode: 'production', devtool: '#source-map', }) )