mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix: check for server webpack config (#91)
This commit is contained in:
parent
5aa31613bd
commit
97efab4270
@ -40,7 +40,7 @@ export default function nuxt2CompatModule () {
|
||||
|
||||
// Disable server sourceMap, esbuild will generate for it.
|
||||
nuxt.hook('webpack:config', (webpackConfigs) => {
|
||||
const serverConfig = webpackConfigs[2] || webpackConfigs[2]
|
||||
const serverConfig = webpackConfigs.find(config => config.name === 'server')
|
||||
serverConfig.devtool = false
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user