misc(builder): tweak server config

This commit is contained in:
Pooya Parsa 2018-03-23 23:00:47 +04:30
parent 3859ad6e15
commit 17dbd2e947

View File

@ -36,7 +36,7 @@ export default class WebpackServerConfig extends BaseConfig {
let config = super.config()
// Config devtool
config.devtool = this.options.dev ? 'cheap-source-map' : false
config.devtool = 'cheap-source-map'
Object.assign(config, {
target: 'node',
@ -50,7 +50,11 @@ export default class WebpackServerConfig extends BaseConfig {
hints: false,
maxAssetSize: Infinity
},
externals: []
externals: [],
optimization: {
splitChunks: false,
minimizer: []
}
})
// https://webpack.js.org/configuration/externals/#externals