Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit f7455c9

Browse files
committed
Set minimize=true to loader options when --uglify passed.
1 parent 47142bc commit f7455c9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: webpack.common.js.angular.template

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ module.exports = function (platform, destinationApp) {
6060
];
6161

6262
if (process.env.npm_config_uglify) {
63+
plugins.push(new webpack.LoaderOptionsPlugin({
64+
minimize: true
65+
}));
66+
6367
//Work around an Android issue by setting compress = false
6468
var compress = platform !== "android";
6569
plugins.push(new webpack.optimize.UglifyJsPlugin({

Diff for: webpack.common.js.nativescript.template

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ module.exports = function (platform, destinationApp) {
4747
];
4848

4949
if (process.env.npm_config_uglify) {
50+
plugins.push(new webpack.LoaderOptionsPlugin({
51+
minimize: true
52+
}));
53+
5054
//Work around an Android issue by setting compress = false
5155
var compress = platform !== "android";
5256
plugins.push(new webpack.optimize.UglifyJsPlugin({

0 commit comments

Comments
 (0)