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

Commit ce90515

Browse files
author
Dimitar Kerezov
committed
Comply docs with new way of webpacking
1 parent 8bd887b commit ce90515

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ A package to help with webpacking NativeScript apps.
1414
$ npm install --save-dev nativescript-dev-webpack
1515
$ npm install
1616

17-
$ npm run start-android-bundle
17+
$ tns run android --bundle
1818
or
19-
$ npm run start-ios-bundle
19+
$ tns run ios --bundle
2020
```
2121

2222
# Documentation

dependencyManager.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ If you want to force update them, please run "node_modules/.bin/update-ns-webpac
1212

1313
const USAGE_MESSAGE = `
1414
NativeScript Webpack plugin was successfully added.
15-
You can now bundle your project with the following npm scripts:
16-
- "npm run build-android-bundle" to build for android.
17-
- "npm run build-ios-bundle" to build for ios.
18-
- "npm run start-android-bundle" to run on android.
19-
- "npm run start-ios-bundle" to run on ios.
20-
You can also pass the "--uglify" flag to use UglifyJS for minification.
15+
You can now bundle your project by passing --bundle flag to NativeScript CLI commands:
16+
- tns build android --bundle
17+
- tns build ios --bundle
18+
- tns run android --bundle
19+
- tns run ios --bundle
20+
You can also pass the "--env.uglify" flag to use UglifyJS for minification.
2121
For more information check out https://docs.nativescript.org/tooling/bundling-with-webpack#bundling.
2222
`;
2323

@@ -103,14 +103,14 @@ function resolveAngularDeps(usedDependencies) {
103103
});
104104
}
105105

106-
return depsToAdd;
106+
return depsToAdd;
107107
}
108108

109109
function getVersionWithoutPatch(fullVersion) {
110110
if (!fullVersion) {
111111
return "";
112112
}
113-
113+
114114
const prereleaseVersions = Object.freeze(["next", "latest", "rc"]);
115115
if (prereleaseVersions.includes(fullVersion)) {
116116
return fullVersion;

0 commit comments

Comments
 (0)