Skip to content

Commit

Permalink
chore(webpack): update webpack README
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Sep 17, 2019
1 parent b821535 commit 2c65e43
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions skeleton/webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ To enable Webpack Bundle Analyzer, do `npm run analyze` (production build).

To enable hot module reload, do `npm start -- --hmr`.

To change dev server port, do `au run --port 8888`.
To change dev server port, do `npm start -- --port 8888`.

To change dev server host, do `au run --host 127.0.0.1`
To change dev server host, do `npm start -- --host 127.0.0.1`

**PS:** You could mix all the flags as well, `au run --host 127.0.0.1 --port 7070 --open --hmr`
**PS:** You could mix all the flags as well, `npm start -- --host 127.0.0.1 --port 7070 --open --hmr`

For long time aurelia-cli user, you can still use `au run` with those arguments like `au run --env prod --open --hmr`. But `au run` now simply executes `npm start` command.

## Build for production

Run `npm run build`.
Run `npm run build`, or the old way `au build --env prod`.

0 comments on commit 2c65e43

Please sign in to comment.