Skip to content

Commit 4838e6b

Browse files
committed
Update README with webpack instructions
1 parent dbc95ff commit 4838e6b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: README.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,25 @@ $ grunt prepare
4545

4646
The latter installs the `angular2` and `tns-core-modules` packages that you just built by running `grunt prepare` step in the project root.
4747

48-
## Compile the ng-sample app
48+
## Run the ng-sample app
4949

5050
```
51-
$ grunt app
51+
$ tns run android
52+
$ tns run ios
53+
```
54+
55+
## (Optional) Webpack bundling
56+
57+
Install the webpack tool:
58+
59+
```
60+
$ npm install -g webpack
61+
```
62+
63+
Enable the webpack hook by setting the `WEBPACK_BUILD` environment variable. You can do it with a single command on OSX/Linux using:
64+
65+
```
66+
$ env WEBPACK_BUILD=1 tns run android
5267
```
5368

5469
# Developer workflow:

0 commit comments

Comments
 (0)