Commit 72ac6590 authored by Tim Neutkens's avatar Tim Neutkens

Make terserPlugin easier to comment out

parent 6b694a50
...@@ -90,11 +90,13 @@ function optimizationConfig ({dir, dev, isServer, totalPages}) { ...@@ -90,11 +90,13 @@ function optimizationConfig ({dir, dev, isServer, totalPages}) {
} }
// Terser is a better uglifier // Terser is a better uglifier
config.minimizer = [new TerserPlugin({ config.minimizer = [
parallel: true, new TerserPlugin({
sourceMap: false, parallel: true,
cache: true sourceMap: false,
})] cache: true
})
]
// Only enabled in production // Only enabled in production
// This logic will create a commons bundle // This logic will create a commons bundle
......
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