Skip to content

Commit fc0ee9d

Browse files
committed
docs: serve hot-reload gif
1 parent 5ee55c2 commit fc0ee9d

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

Diff for: docs/.vuepress/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module.exports = {
2121
themeConfig: {
2222
repo: 'vuejs/vue-loader',
2323
docsDir: 'docs',
24+
serviceWorker: {
25+
updatePop: true
26+
},
2427
locales: {
2528
'/': {
2629
label: 'English',

Diff for: docs/.vuepress/public/hot-reload.gif

223 KB
Loading

Diff for: docs/guide/hot-reload.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"Hot Reload" is not simply reloading the page when you edit a file. With hot reload enabled, when you edit a `*.vue` file, all instances of that component will be swapped in **without reloading the page**. It even preserves the current state of your app and these swapped components! This dramatically improves the development experience when you are tweaking the templates or styling of your components.
44

5-
![hot-reload](http://blog.evanyou.me/images/vue-hot.gif)
5+
![hot-reload](/hot-reload.gif)
66

77
## State Preservation Rules
88

Diff for: docs/ru/guide/hot-reload.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"Горячая перезагрузка" это не просто обновление страницы, когда вы отредактируете файл. При использовании горячей перезагрузки, когда вы отредактируете `*.vue` файл, все экземпляры этого компонента будут заменены **без перезагрузки страницы**. При этом даже будет сохранено текущее состояние вашего приложения и заменяемых компонентов! Это значительно улучшает процесс разработки, особенно когда вы занимаетесь тонкой настройкой шаблонов или стилей ваших компонентов.
44

5-
![hot-reload](http://blog.evanyou.me/images/vue-hot.gif)
5+
![hot-reload](/hot-reload.gif)
66

77
## Правила сохранения состояния
88

Diff for: docs/zh/guide/hot-reload.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
“热重载”不只是当你修改文件的时候简单重新加载页面。启用热重载后,当你修改 `.vue` 文件时,该组件的所有实例将在**不刷新页面**的情况下被替换。它甚至保持了应用程序和被替换组件的当前状态!当你调整模版或者修改样式时,这极大地提高了开发体验。
44

5-
![hot-reload](http://blog.evanyou.me/images/vue-hot.gif)
5+
![hot-reload](/hot-reload.gif)
66

77
## 状态保留规则
88

0 commit comments

Comments
 (0)