Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e938e86

Browse files
author
Dimitar Tachev
authored
Merge pull request #88 from NativeScript/zbranzov/fix-webpack
Fix webpack uglify and snapshot
2 parents 27268cc + 66bab32 commit e938e86

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ matrix:
1616
language: node_js
1717
node_js: "6"
1818
jdk: oraclejdk8
19-
script: cd demo && npm run build.plugin && npm i && npm run build-ios-bundle
19+
script: cd demo && npm run build.plugin && npm i && npm run ns-bundle --ios --build-app --uglify
2020
- os: linux
2121
language: android
2222
env:
2323
- Webpack="Android"
2424
jdk: oraclejdk8
2525
before_install: nvm install 6.10.3
26-
script: cd demo && npm run build.plugin && npm i && npm run build-android-bundle
26+
script: cd demo && npm run build.plugin && npm i && npm run ns-bundle --android --build-app --uglify --snapshot
2727
- os: linux
2828
env:
2929
- BuildAndroid="26"
@@ -75,6 +75,7 @@ android:
7575
- platform-tools
7676
- build-tools-26.0.1
7777
- android-26
78+
- android-23
7879
- extra-android-m2repository
7980
- sys-img-armeabi-v7a-android-21
8081

demo/app/vendor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
require("./vendor-platform");
2-
32
require("bundle-entry-points");
3+
require("nativescript-geolocation");

demo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
"publish-ios-bundle": "npm run ns-bundle --ios --publish-app",
4747
"generate-android-snapshot": "generate-android-snapshot --targetArchs arm,arm64,ia32 --install",
4848
"build.plugin": "cd ../src && npm run build",
49-
"start-android-bundle": "npm run ns-bundle --android --run-app",
50-
"start-ios-bundle": "npm run ns-bundle --ios --run-app",
51-
"build-android-bundle": "npm run ns-bundle --android --build-app",
52-
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
49+
"start-android-bundle": "npm run ns-bundle --android --run-app --uglify --snapshot",
50+
"start-ios-bundle": "npm run ns-bundle --ios --run-app --uglify",
51+
"build-android-bundle": "npm run ns-bundle --android --build-app --uglify --snapshot",
52+
"build-ios-bundle": "npm run ns-bundle --ios --build-app --uglify"
5353
}
5454
}

0 commit comments

Comments
 (0)