Don't use variables in webpack config
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-06-25 22:44:15 +02:00
parent 1b5f02637c
commit 116bdcecdb

View File

@ -13,14 +13,13 @@ const nextConfig = {
},
// Disable minification & chunking for debugging
webpack(config, { dev }) {
const debug = true
config.optimization.minimize = debug
config.optimization.minimize = true
config.optimization.splitChunks = {
cacheGroups: {
default: debug,
default: true,
},
}
config.optimization.runtimeChunk = debug
config.optimization.runtimeChunk = true
return config
},
}