Unverified Commit 7b643811 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Disable terser for server build (#6951)

Checking the stats first. But at least until https://github.com/zeit/next.js/issues/6950 is figured out we should disable it for serverless builds as it's also disabled for zeit.co serverless builds.
parent da02f570
......@@ -130,18 +130,7 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
],
optimization: isServer ? {
splitChunks: false,
minimize: target === 'serverless',
minimizer: target === 'serverless' ? [
new TerserPlugin({...terserPluginConfig,
terserOptions: {
compress: false,
mangle: false,
module: false,
keep_classnames: true,
keep_fnames: true
}
})
] : undefined
minimize: false
} : Object.assign({
runtimeChunk: __selectivePageBuilding ? false : {
name: CLIENT_STATIC_FILES_RUNTIME_WEBPACK
......
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