File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ Into the following:
221221When using ` webpack-dev-server ` in hot mode, ` vue-loader ` enables hot component reloading for Vue.js 1.0.0+. An example config:
222222
223223``` js
224- // webpack.example. config.js
224+ // webpack.config.js
225225module .exports = {
226226 entry: ' ./src/main.js' ,
227227 output: {
@@ -240,16 +240,16 @@ module.exports = {
240240In ` index.html ` , include the bundle:
241241
242242``` html
243- <script src =" / static/build.js" ></script >
243+ <script src =" static/build.js" ></script >
244244```
245245
246246Then, run the dev server with:
247247
248248``` bash
249- webpack-dev-server --inline --hot --config webpack.example.config.js
249+ webpack-dev-server --inline --hot
250250```
251251
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.
253253
254254For a complete example with hot reloading in action, see [ vue-hackernews] ( https://github.com/vuejs/vue-hackernews ) .
255255
You can’t perform that action at this time.
0 commit comments