Skip to content

Commit e14920b

Browse files
clydinfilipesilva
authored andcommitted
fix(@angular/cli): support minified JS on safari 10
1 parent 0b5dea5 commit e14920b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/@angular/cli/models/webpack-configs/production.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,14 @@ export function getProdConfig(wco: WebpackConfigOptions) {
144144
ecma: wco.supportES2015 ? 6 : 5,
145145
warnings: buildOptions.verbose,
146146
ie8: false,
147-
mangle: true,
147+
mangle: {
148+
safari10: true,
149+
},
148150
compress: uglifyCompressOptions,
149151
output: {
150152
ascii_only: true,
151-
comments: false
153+
comments: false,
154+
webkit: true,
152155
},
153156
}
154157
}),

0 commit comments

Comments
 (0)