Skip to content

Commit 598634a

Browse files
committed
Fix startup-test app with latest webpack changes from ng-sample.
1 parent e428d2c commit 598634a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Diff for: startup-test/app/starter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ var timerEntry = {
1919

2020
global.timers.set("application-start", timerEntry);
2121

22-
require("./index.js");
22+
require("./app.js");

Diff for: startup-test/webpack.config.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ var path = require("path");
22
var webpack = require("webpack");
33

44

5+
console.log('PROJECT_DIR: ' + process.env.PROJECT_DIR);
6+
57
module.exports = {
6-
context: "./platforms/android/src/main/assets/app",
8+
//context: "./platforms/android/src/main/assets/app",
9+
context: process.env.PROJECT_DIR,
710
entry: {
811
app: "./app",
912
},
@@ -38,5 +41,10 @@ module.exports = {
3841
global: 'global',
3942
__dirname: '__dirname'
4043
}),
44+
new webpack.optimize.UglifyJsPlugin({
45+
compress: {
46+
warnings: true
47+
}
48+
})
4149
]
4250
};

0 commit comments

Comments
 (0)