mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
misc(builder): tweak server config
This commit is contained in:
parent
3859ad6e15
commit
17dbd2e947
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user