We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c9990 commit ec770b6Copy full SHA for ec770b6
docs/live_reload.md
@@ -2,10 +2,6 @@
2
3
With `webpack-dev-server`, we can use it to auto reload web page when the code of the project changed.
4
5
-```
6
-npm install webpack-dev-server@4
7
8
-
9
Please edit `frontend/webpack/webpack.config.dev.js`
10
11
```js
@@ -27,8 +23,9 @@ devServer: {
27
23
28
24
Notes:
29
25
30
-1. Remove `hot: true` from the `devServer` section
31
-1. Then you should config the `watchFiles`
26
+1. Add `watchFiles` to the `devServer` object.
32
1. Here we tell `webpack-dev-server` to watch all `.py` and `.html` files under the `django_app` directory.
33
+Run Webpack dev server with `npm run start`
+
34
Now if we change code in the editor, the web page will live reload, which is awesome!
0 commit comments