1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Disable webpack cache option in prod (#5877)

* Disable webpack cache option in prod

* Remove cache option as it’s added by mode === ‘development’
This commit is contained in:
Tim Neutkens 2018-12-14 11:34:05 +01:00 committed by GitHub
parent 00a14d696d
commit 1464d932eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,7 +228,6 @@ export default async function getBaseWebpackConfig (dir, {dev = false, isServer
mode: webpackMode,
devtool: dev ? 'cheap-module-source-map' : false,
name: isServer ? 'server' : 'client',
cache: true,
target: isServer ? 'node' : 'web',
externals: externalsConfig(dir, isServer, lambdas),
optimization: optimizationConfig({dir, dev, isServer, totalPages, lambdas}),