Skip to content

Commit a734c98

Browse files
committed
Removed code that was originally being inlined for dev server that now doesn't need to be inlined. Now ng serve should just _work_ for mobile builds and caching should also work correctly, EDIT: forgot to uncomment the optimizations for prod
1 parent 31d6d7a commit a734c98

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

addon/ng2/models/webpack-build-production.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ export const getWebpackProdConfigPartial = function(projectRoot: string) {
2727
// debug: false
2828
// }),
2929
// ~107kb
30-
// new webpack.optimize.UglifyJsPlugin({
31-
// beautify: false, //prod
32-
// mangle: { screw_ie8 : true }, //prod
33-
// compress: { screw_ie8: true }, //prod
34-
// comments: false //prod
35-
// }),
36-
// new CompressionPlugin({
37-
// asset: "[path].gz[query]",
38-
// algorithm: "gzip",
39-
// test: /\.js$|\.html$/,
40-
// threshold: 10240,
41-
// minRatio: 0.8
42-
// })
30+
new webpack.optimize.UglifyJsPlugin({
31+
beautify: false, //prod
32+
mangle: { screw_ie8 : true }, //prod
33+
compress: { screw_ie8: true }, //prod
34+
comments: false //prod
35+
}),
36+
new CompressionPlugin({
37+
asset: "[path].gz[query]",
38+
algorithm: "gzip",
39+
test: /\.js$|\.html$/,
40+
threshold: 10240,
41+
minRatio: 0.8
42+
})
4343
],
4444
tslint: {
4545
emitErrors: true,

0 commit comments

Comments
 (0)