1
0
Fork 0
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:
Tim Neutkens 2018-08-30 12:27:22 +02:00 committed by GitHub
parent 48e4c771c2
commit 18a23b3e4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,8 +148,10 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
}
}
const webpackMode = dev ? 'development' : 'production'
let webpackConfig = {
mode: dev ? 'development' : 'production',
mode: webpackMode,
devtool: dev ? 'cheap-module-source-map' : false,
name: isServer ? 'server' : 'client',
cache: true,
@ -220,6 +222,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
]
},
config: {
mode: webpackMode,
resolve: resolveConfig
}
}),