Skip to content

Commit b7b42ab

Browse files
robindijkhofhansl
authored andcommitted
fix(@angular/cli): prevent unicode character compression
1 parent 754c1e7 commit b7b42ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
7171

7272
// Load the Webpack plugin for manifest generation and install it.
7373
const AngularServiceWorkerPlugin = require('@angular/service-worker/build/webpack')
74-
.AngularServiceWorkerPlugin;
74+
.AngularServiceWorkerPlugin;
7575
extraPlugins.push(new AngularServiceWorkerPlugin({
7676
baseHref: buildOptions.baseHref || '/',
7777
}));
@@ -111,9 +111,10 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
111111
}),
112112
new webpack.HashedModuleIdsPlugin(),
113113
new webpack.optimize.ModuleConcatenationPlugin(),
114-
new webpack.optimize.UglifyJsPlugin({
114+
new webpack.optimize.UglifyJsPlugin(<any>{
115115
mangle: { screw_ie8: true },
116116
compress: uglifyCompressOptions,
117+
output: { ascii_only: true },
117118
sourceMap: buildOptions.sourcemaps,
118119
comments: false
119120
})

0 commit comments

Comments
 (0)