main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
994 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | # webpack-cli serve
|
---|
| 2 |
|
---|
| 3 | [![NPM Downloads][downloads]][downloads-url]
|
---|
| 4 |
|
---|
| 5 | > **Note**
|
---|
| 6 | >
|
---|
| 7 | > This package is used by webpack-cli under-the-hood and is not intended for installation
|
---|
| 8 |
|
---|
| 9 | ## Description
|
---|
| 10 |
|
---|
| 11 | This package contains the logic to run [webpack-dev-server](https://github.com/webpack/webpack-dev-server) to serve your webpack app and provide live reloading.
|
---|
| 12 |
|
---|
| 13 | ## Installation
|
---|
| 14 |
|
---|
| 15 | ```bash
|
---|
| 16 | npm i -D webpack-cli @webpack-cli/serve
|
---|
| 17 | ```
|
---|
| 18 |
|
---|
| 19 | ## Usage
|
---|
| 20 |
|
---|
| 21 | ### CLI (via `webpack-cli`)
|
---|
| 22 |
|
---|
| 23 | ```bash
|
---|
| 24 | npx webpack-cli serve
|
---|
| 25 | ```
|
---|
| 26 |
|
---|
| 27 | ### Options
|
---|
| 28 |
|
---|
| 29 | Checkout [`SERVE-OPTIONS-v4.md`](https://github.com/webpack/webpack-cli/blob/master/SERVE-OPTIONS-v4.md) or [`SERVE-OPTIONS-v5.md`](https://github.com/webpack/webpack-cli/blob/master/SERVE-OPTIONS-v5.md) to see list of all available options for `serve` command for respective [`webpack-dev-server`](https://github.com/webpack/webpack-dev-server) version.
|
---|
| 30 |
|
---|
| 31 | [downloads]: https://img.shields.io/npm/dm/@webpack-cli/serve.svg
|
---|
| 32 | [downloads-url]: https://www.npmjs.com/package/@webpack-cli/serve
|
---|
Note:
See
TracBrowser
for help on using the repository browser.