From 127fabf17f15007a2a5e2a0a5fbd9f00ef9e42a2 Mon Sep 17 00:00:00 2001 From: Gabriel Aumala Date: Wed, 22 Aug 2018 01:29:19 -0500 Subject: [PATCH] docs(development): Add warning about dev server In the Development guide, add a warning about the dev server not writing any output files. --- src/content/guides/development.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content/guides/development.md b/src/content/guides/development.md index 70358163446f..5de8fe466762 100644 --- a/src/content/guides/development.md +++ b/src/content/guides/development.md @@ -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. @@ -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__