Skip to content

Commit 863a163

Browse files
committed
simplify hot reloading example
1 parent a8dd195 commit 863a163

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Into the following:
221221
When 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
225225
module.exports = {
226226
entry: './src/main.js',
227227
output: {
@@ -240,16 +240,16 @@ module.exports = {
240240
In `index.html`, include the bundle:
241241

242242
``` html
243-
<script src="/static/build.js"></script>
243+
<script src="static/build.js"></script>
244244
```
245245

246246
Then, 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

254254
For a complete example with hot reloading in action, see [vue-hackernews](https://github.com/vuejs/vue-hackernews).
255255

0 commit comments

Comments
 (0)