mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Set mode for DLL bundle (#5059)
This commit is contained in:
parent
48e4c771c2
commit
18a23b3e4b
|
@ -148,8 +148,10 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const webpackMode = dev ? 'development' : 'production'
|
||||||
|
|
||||||
let webpackConfig = {
|
let webpackConfig = {
|
||||||
mode: dev ? 'development' : 'production',
|
mode: webpackMode,
|
||||||
devtool: dev ? 'cheap-module-source-map' : false,
|
devtool: dev ? 'cheap-module-source-map' : false,
|
||||||
name: isServer ? 'server' : 'client',
|
name: isServer ? 'server' : 'client',
|
||||||
cache: true,
|
cache: true,
|
||||||
|
@ -220,6 +222,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
config: {
|
config: {
|
||||||
|
mode: webpackMode,
|
||||||
resolve: resolveConfig
|
resolve: resolveConfig
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue