Unverified Commit 1edd872f authored by Connor Davis's avatar Connor Davis Committed by GitHub

Only Minify Whitespace on Serverless Builds (#6037)

parent f9efe05d
...@@ -86,7 +86,15 @@ function optimizationConfig ({ dev, isServer, totalPages, target }) { ...@@ -86,7 +86,15 @@ function optimizationConfig ({ dev, isServer, totalPages, target }) {
return { return {
splitChunks: false, splitChunks: false,
minimizer: [ minimizer: [
new TerserPlugin(terserPluginConfig) new TerserPlugin({...terserPluginConfig,
terserOptions: {
compress: false,
mangle: false,
module: false,
keep_classnames: true,
keep_fnames: true
}
})
] ]
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment