You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/performance-optimizations/startup-times.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,13 @@ When the `install` command finishes, you’ll have a series of scripts you can u
42
42
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.
43
43
44
44
```
45
-
tns run android --bundle
45
+
tns run android
46
46
```
47
47
48
48
Or
49
49
50
50
```
51
-
tns run ios --bundle
51
+
tns run ios
52
52
```
53
53
54
54
> **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
88
88
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.
89
89
90
90
```
91
-
tns run android --bundle --env.uglify
91
+
tns run android --env.uglify
92
92
```
93
93
94
94
Or
95
95
96
96
```
97
-
tns run ios --bundle --env.uglify
97
+
tns run ios --env.uglify
98
98
```
99
99
100
100
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
127
127
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.
128
128
129
129
```
130
-
tns run android --bundle --env.uglify --env.snapshot
130
+
tns run android --env.uglify --env.snapshot
131
131
```
132
132
133
133
There are two important things to note:
@@ -160,11 +160,11 @@ npm install
160
160
3) Run on iOS with webpack, UglifyJS, and Angular Ahead-of-Time enabled.
161
161
162
162
```
163
-
tns run ios --bundle --env.uglify --env.aot
163
+
tns run ios --env.uglify --env.aot
164
164
```
165
165
166
166
4) Run on Android with webpack, UglifyJS, Angular Ahead-of-Time (if using Angular), and V8 heap snapshot builds enabled.
167
167
168
168
```
169
-
tns run android --bundle --env.uglify --env.aot --env.snapshot
170
-
```
169
+
tns run android --env.uglify --env.aot --env.snapshot
0 commit comments