Skip to content

Commit

Permalink
Add iOS 10 support for TerserPlugin (#6067)
Browse files Browse the repository at this point in the history
Resolves #5630
  • Loading branch information
teleginzhenya authored and timneutkens committed Jan 16, 2019
1 parent da3c3ad commit aa47401
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/build/webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ function optimizationConfig ({ dev, isServer, totalPages, target }) {

// Terser is a better uglifier
config.minimizer = [
new TerserPlugin(terserPluginConfig)
new TerserPlugin({...terserPluginConfig,
terserOptions: {
safari10: true
}
})
]

// Only enabled in production
Expand Down

0 comments on commit aa47401

Please sign in to comment.