Skip to content

Commit 9586f88

Browse files
clydinfilipesilva
authored andcommitted
fix(@angular/cli): support minified JS on safari 10
1 parent 54b6c6b commit 9586f88

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
@@ -135,11 +135,14 @@ export function getProdConfig(wco: WebpackConfigOptions) {
135135
ecma: wco.supportES2015 ? 6 : 5,
136136
warnings: buildOptions.verbose,
137137
ie8: false,
138-
mangle: true,
138+
mangle: {
139+
safari10: true,
140+
},
139141
compress: uglifyCompressOptions,
140142
output: {
141143
ascii_only: true,
142-
comments: false
144+
comments: false,
145+
webkit: true,
143146
},
144147
}
145148
}),

0 commit comments

Comments
 (0)