Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 863a163

Browse filesBrowse files
committed
simplify hot reloading example
1 parent a8dd195 commit 863a163
Copy full SHA for 863a163

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.