1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Add iOS 10 support for TerserPlugin (#6067)

Resolves #5630
This commit is contained in:
Telegin Evgeniy 2019-01-16 15:32:47 +06:00 committed by Tim Neutkens
parent da3c3aded1
commit aa474017d7

View file

@ -124,7 +124,11 @@ function optimizationConfig ({ dev, isServer, totalPages, target }) {
// Terser is a better uglifier // Terser is a better uglifier
config.minimizer = [ config.minimizer = [
new TerserPlugin(terserPluginConfig) new TerserPlugin({...terserPluginConfig,
terserOptions: {
safari10: true
}
})
] ]
// Only enabled in production // Only enabled in production