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
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/run.md
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,11 @@ Run on a selected connected device or running emulator. Will start emulator with
22
22
*`--justlaunch` - If set, does not print the application output in the console.
23
23
*`--release` - If set, produces a release build. Otherwise, produces a debug build.
24
24
*`--device` - Specifies a connected device/emulator to start and run the app. `<Device ID>` is the index or `Device Identifier` of the target device as listed by the `$ tns device <Platform> --available-devices` command.
25
+
*`--bundle` - Specifies that the `webpack` bundler will be used to bundle the application.
26
+
*`--hmr` - (Beta) Enables the hot module replacement (HMR) feature. HMR depends on `webpack` and adding the `--hmr` flag to the command will automatically enable the `--bundle` option as well. <% if(isConsole) { %> The HMR feature is currently in Beta. For more information about the current development state and any known issues, please check the relevant GitHub issue: https://github.com/NativeScript/NativeScript/issues/6398.<% } %>
27
+
*`--env.*` - Specifies additional flags that the bundler may process. May be passed multiple times. For example: `--env.uglify --env.snapshot`.
28
+
*`--syncAllFiles` - Watches all production dependencies inside node_modules for changes. Triggers project rebuild if necessary!
`<Platform>` is the target mobile platform for which you want to run your project. You can set the following target platforms:
@@ -32,6 +37,8 @@ Run on a selected connected device or running emulator. Will start emulator with
32
37
33
38
<% if(isHtml) { %>
34
39
40
+
>Note: Hot Module Replacement (HMR) is currently in Beta. For more information about the current development state and any known issues, please check the relevant GitHub issue: https://github.com/NativeScript/NativeScript/issues/6398.
41
+
35
42
### Command Limitations
36
43
37
44
* The command will work with all connected devices and running emulators on macOS. On Windows and Linux the command will work with Android devices only.
0 commit comments