File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ Into the following:
221
221
When using ` webpack-dev-server ` in hot mode, ` vue-loader ` enables hot component reloading for Vue.js 1.0.0+. An example config:
222
222
223
223
``` js
224
- // webpack.example. config.js
224
+ // webpack.config.js
225
225
module .exports = {
226
226
entry: ' ./src/main.js' ,
227
227
output: {
@@ -240,16 +240,16 @@ module.exports = {
240
240
In ` index.html ` , include the bundle:
241
241
242
242
``` html
243
- <script src =" / static/build.js" ></script >
243
+ <script src =" static/build.js" ></script >
244
244
```
245
245
246
246
Then, run the dev server with:
247
247
248
248
``` bash
249
- webpack-dev-server --inline --hot --config webpack.example.config.js
249
+ webpack-dev-server --inline --hot
250
250
```
251
251
252
- Finally, visit ` http://localhost:8080/webpack-dev-server/ ` to see the app with hot reloading.
252
+ Finally, visit ` http://localhost:8080/ ` to see the app with hot reloading.
253
253
254
254
For a complete example with hot reloading in action, see [ vue-hackernews] ( https://github.com/vuejs/vue-hackernews ) .
255
255
You can’t perform that action at this time.
0 commit comments