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

Commit 517f566

Browse files
committed
Removed --bundle flag
1 parent e21136b commit 517f566

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/performance-optimizations/startup-times.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ When the `install` command finishes, you’ll have a series of scripts you can u
4242
You can go ahead and run one of the following two commands to see how much faster your apps run with the default webpack configuration in place.
4343

4444
```
45-
tns run android --bundle
45+
tns run android
4646
```
4747

4848
Or
4949

5050
```
51-
tns run ios --bundle
51+
tns run ios
5252
```
5353

5454
> **NOTE**: If you’re having trouble enabling webpack in your own apps, feel free to reach out for help on [Stack Overflow](https://stackoverflow.com/questions/tagged/nativescript).
@@ -88,13 +88,13 @@ For NativeScript apps there are two advantages to using UglifyJS. First, because
8888
Using UglifyJS is easy too. To use UglifyJS as part of your NativeScript builds, all you need to do is add a `--env.uglify` flag to the scripts you ran earlier. That is, run one of the following commands.
8989

9090
```
91-
tns run android --bundle --env.uglify
91+
tns run android --env.uglify
9292
```
9393

9494
Or
9595

9696
```
97-
tns run ios --bundle --env.uglify
97+
tns run ios --env.uglify
9898
```
9999

100100
If you open your `vendor.js` and `bundle.js` files, you should now see compressed code that looks something like this.
@@ -127,7 +127,7 @@ What V8 lets you do, however, is provide a so-called heap snapshot, or a previou
127127
In NativeScript we’re integrated this process directly within our webpack build process; therefore, running a build with V8 heap snapshots enabled is as simple as adding a `--env.snapshot` flag to the previous step.
128128

129129
```
130-
tns run android --bundle --env.uglify --env.snapshot
130+
tns run android --env.uglify --env.snapshot
131131
```
132132

133133
There are two important things to note:
@@ -160,11 +160,11 @@ npm install
160160
3) Run on iOS with webpack, UglifyJS, and Angular Ahead-of-Time enabled.
161161

162162
```
163-
tns run ios --bundle --env.uglify --env.aot
163+
tns run ios --env.uglify --env.aot
164164
```
165165

166166
4) Run on Android with webpack, UglifyJS, Angular Ahead-of-Time (if using Angular), and V8 heap snapshot builds enabled.
167167

168168
```
169-
tns run android --bundle --env.uglify --env.aot --env.snapshot
170-
```
169+
tns run android --env.uglify --env.aot --env.snapshot
170+
```

0 commit comments

Comments
 (0)