Skip to content

Commit c8f3a1e

Browse files
etatuevMarkPieszak
authored andcommitted
fix(webpack): enable uglifyjs for non-vendor bundles
1 parent b7dd580 commit c8f3a1e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

webpack.config.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ module.exports = (env) => {
6565
entryModule: path.join(__dirname, 'ClientApp/app/app.module.browser#AppModule'),
6666
exclude: ['./**/*.server.ts']
6767
}),
68-
// new webpack.optimize.UglifyJsPlugin({
69-
// compress: false,
70-
// mangle: false
71-
// })
68+
new webpack.optimize.UglifyJsPlugin({
69+
output: {
70+
ascii_only: true,
71+
}
72+
}),
7273
]),
7374
devtool: isDevBuild ? 'cheap-eval-source-map' : false,
7475
node: {
@@ -104,10 +105,13 @@ module.exports = (env) => {
104105
{}
105106
)
106107
] : [
107-
// new webpack.optimize.UglifyJsPlugin({
108-
// compress: false,
109-
// mangle: false
110-
// }),
108+
new webpack.optimize.UglifyJsPlugin({
109+
mangle: false,
110+
compress: false,
111+
output: {
112+
ascii_only: true,
113+
}
114+
}),
111115
// Plugins that apply in production builds only
112116
new AngularCompilerPlugin({
113117
mainPath: path.join(__dirname, 'ClientApp/boot.server.PRODUCTION.ts'),

0 commit comments

Comments
 (0)