Skip to content

Commit a7ad531

Browse files
Merge pull request #56 from NativeScript/update-webpack
Update nativescript-dev-webpack to the latest version and introduce s…
2 parents 8092a74 + b041c51 commit a7ad531

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

demo-angular/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@
4343
"lazy": "1.0.11",
4444
"nativescript-css-loader": "~0.26.0",
4545
"nativescript-dev-typescript": "^0.4.0",
46-
"nativescript-dev-webpack": "^0.6.3",
46+
"nativescript-dev-webpack": "0.7.3",
4747
"raw-loader": "~0.5.1",
4848
"resolve-url-loader": "~2.0.2",
4949
"typescript": "~2.3.4",
5050
"webpack": "~2.6.1",
5151
"webpack-sources": "~1.0.1",
52-
"tslint": "~5.4.3"
52+
"tslint": "~5.4.3",
53+
"webpack-bundle-analyzer": "^2.8.2"
5354
},
5455
"scripts": {
5556
"ns-bundle": "ns-bundle",
@@ -58,9 +59,10 @@
5859
"ci.android.build": "npm run build.plugin && tns build android",
5960
"ci.ios.build": "npm run build.plugin && tns build ios",
6061
"publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
61-
"start-android-bundle": "npm run ns-bundle --android --run-app",
62-
"start-ios-bundle": "npm run ns-bundle --ios --run-app",
63-
"build-android-bundle": "npm run ns-bundle --android --build-app",
64-
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
62+
"start-android-bundle": "npm run ns-bundle --android --run-app --uglify --snapshot",
63+
"start-ios-bundle": "npm run ns-bundle --ios --run-app --uglify",
64+
"build-android-bundle": "npm run ns-bundle --android --build-app --uglify --snapshot",
65+
"build-ios-bundle": "npm run ns-bundle --ios --build-app --uglify",
66+
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install"
6567
}
66-
}
68+
}

demo/package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@
3232
"nativescript-css-loader": "~0.26.0",
3333
"nativescript-dev-appium": "^1.0.0",
3434
"nativescript-dev-typescript": "^0.4.0",
35-
"nativescript-dev-webpack": "^0.6.3",
35+
"nativescript-dev-webpack": "0.7.3",
3636
"raw-loader": "~0.5.1",
3737
"resolve-url-loader": "~2.0.2",
3838
"typescript": "~2.2.2",
3939
"tslint": "~5.4.3",
4040
"wd": "~1.1.1",
4141
"webpack": "~2.6.1",
42-
"webpack-sources": "~1.0.1"
42+
"webpack-sources": "~1.0.1",
43+
"webpack-bundle-analyzer": "^2.8.2"
4344
},
4445
"scripts": {
4546
"ns-bundle": "ns-bundle",
@@ -51,9 +52,10 @@
5152
"ci.ios.build": "npm run build.plugin && tns build ios",
5253
"ci.ios.uitest": "npm run appium --runtype=ios-simulator103iPhone6",
5354
"publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
54-
"start-android-bundle": "npm run ns-bundle --android --run-app",
55-
"start-ios-bundle": "npm run ns-bundle --ios --run-app",
56-
"build-android-bundle": "npm run ns-bundle --android --build-app",
57-
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
55+
"start-android-bundle": "npm run ns-bundle --android --run-app --uglify --snapshot",
56+
"start-ios-bundle": "npm run ns-bundle --ios --run-app --uglify",
57+
"build-android-bundle": "npm run ns-bundle --android --build-app --uglify --snapshot",
58+
"build-ios-bundle": "npm run ns-bundle --ios --build-app --uglify",
59+
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install"
5860
}
5961
}

0 commit comments

Comments
 (0)