Don't use variables in webpack config
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1b5f02637c
commit
116bdcecdb
@ -13,14 +13,13 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
// Disable minification & chunking for debugging
|
// Disable minification & chunking for debugging
|
||||||
webpack(config, { dev }) {
|
webpack(config, { dev }) {
|
||||||
const debug = true
|
config.optimization.minimize = true
|
||||||
config.optimization.minimize = debug
|
|
||||||
config.optimization.splitChunks = {
|
config.optimization.splitChunks = {
|
||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
default: debug,
|
default: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
config.optimization.runtimeChunk = debug
|
config.optimization.runtimeChunk = true
|
||||||
return config
|
return config
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user