File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,9 @@ Into the following:
159159When using ` webpack-dev-server ` in hot mode, ` vue-loader ` enables hot component reloading for Vue.js 1.0.0+. An example config:
160160
161161``` js
162+ // webpack.example.config.js
162163module .exports = {
163- entry: [ ' webpack/hot/dev-server ' , ' ./src/main.js' ] ,
164+ entry: ' ./src/main.js' ,
164165 output: {
165166 publicPath: ' /static/' ,
166167 filename: ' build.js'
@@ -183,7 +184,7 @@ In `index.html`, include the bundle:
183184Then, run the dev server with:
184185
185186``` bash
186- webpack-dev-server --hot --config build/ webpack.dev .config.js
187+ webpack-dev-server --inline -- hot --config webpack.example .config.js
187188```
188189
189190Finally, visit ` http://localhost:8080/webpack-dev-server/ ` to see the app with hot reloading.
You can’t perform that action at this time.
0 commit comments