const HardSourceWebpackPlugin = require('hard-source-webpack-plugin') const plugins = require('./plugins') const resolve = require('./resolve') const config = { resolve, plugins: [...plugins('renderer'), new HardSourceWebpackPlugin()], devServer: { historyApiFallback: true, }, } if (__DEV__) { Object.assign(config, { output: { publicPath: '/', }, }) } module.exports = config