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
docs(en): remove the mentions of the bundle and hmr flags (#285)
Starting with NativeScript 6.0, the `bundle` and `hmr` flags are now
enabled by default.
This PR should be merged after
nativescript-vue/vue-cli-template#134.
Copy file name to clipboardExpand all lines: content/docs/en/getting-started/1-quick-start.md
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,9 @@ $ npm install
23
23
$ # or
24
24
$ yarn install
25
25
$
26
-
$ tns run android --bundle
26
+
$ tns preview
27
27
$ # or
28
-
$ tns run ios --bundle
29
-
$
30
-
$ # You may also try the new HMR mode by replacing --bundle
31
-
$ # with --hmr, but note that this is a beta feature.
28
+
$ tns run
32
29
```
33
30
34
31
This set of commands performs the following operations on your system:
@@ -37,4 +34,5 @@ This set of commands performs the following operations on your system:
37
34
2. Creates a project using the [vue-cli-template](https://github.com/nativescript-vue/vue-cli-template).
38
35
3. Switches to the directory containing the newly created project.
39
36
4. Installs any npm dependencies locally.
40
-
5. Builds and runs the project on any connected devices or installed emulators for the selected platform. The `--bundle` option triggers a webpack build, which compiles `.vue` files and watches for changes.
37
+
5. If executing `tns preview`, produces a QR code which can be used to preview the app on a device.
38
+
6. If executing `tns run`, builds and runs the project on all connected devices or in native emulators.
@@ -181,12 +181,10 @@ Run the following command to clean the new app's folders and reinstall any depen
181
181
$ cd<project-name>
182
182
$ rm -rf platforms
183
183
$ npm install
184
-
$ tns run android --bundle
185
-
$ # or
186
-
$ tns run ios --bundle
184
+
$ tns run
187
185
```
188
186
189
-
## (Optional) Step 8: Try HMR
187
+
## (Optional) Step 9: Try HMR
190
188
191
189
NativeScript now provides support for HMR (Hot Module Replacement). The latest version of NativeScript-Vue provides out-of-the-box HMR support as well but requires the NativeScript CLI.
192
190
@@ -196,7 +194,5 @@ Run the following command to get HMR support by installing the latest and greate
0 commit comments