mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Only Minify Whitespace on Serverless Builds (#6037)
This commit is contained in:
parent
f9efe05d4b
commit
1edd872f54
|
@ -86,7 +86,15 @@ function optimizationConfig ({ dev, isServer, totalPages, target }) {
|
|||
return {
|
||||
splitChunks: false,
|
||||
minimizer: [
|
||||
new TerserPlugin(terserPluginConfig)
|
||||
new TerserPlugin({...terserPluginConfig,
|
||||
terserOptions: {
|
||||
compress: false,
|
||||
mangle: false,
|
||||
module: false,
|
||||
keep_classnames: true,
|
||||
keep_fnames: true
|
||||
}
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue