Skip to content

Commit

Permalink
docs(guides): Add warning about dev server (#2459)
Browse files Browse the repository at this point in the history
In the Development guide, add a warning about the dev server not writing
any output files.
  • Loading branch information
GAumala authored and montogeek committed Sep 2, 2018
1 parent 5468090 commit c54bcf9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/content/guides/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contributors:
- TheDutchCoder
- WojciechKo
- Calinou
- GAumala
---

T> This guide extends on code examples found in the [Output Management](/guides/output-management) guide.
Expand Down Expand Up @@ -205,6 +206,8 @@ __webpack.config.js__

This tells `webpack-dev-server` to serve the files from the `dist` directory on `localhost:8080`.

W> webpack-dev-server doesn't write any output files after compiling. Instead, it keeps bundle files in memory and serves them as if they were real files mounted at the server's root path. If your page expects to find the bundle files in different path, you can change this with the [`publicPath`](/configuration/dev-server/#devserver-publicpath-) option in the dev server's configuration.

Let's add a script to easily run the dev server as well:

__package.json__
Expand Down

0 comments on commit c54bcf9

Please sign in to comment.