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 fc0ee9d

Browse filesBrowse files
committed
docs: serve hot-reload gif
1 parent 5ee55c2 commit fc0ee9d
Copy full SHA for fc0ee9d

File tree

Expand file treeCollapse file tree

5 files changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+6
-3
lines changed

‎docs/.vuepress/config.js

Copy file name to clipboardExpand all lines: docs/.vuepress/config.js
+3Lines changed: 3 additions & 0 deletions
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',

‎docs/.vuepress/public/hot-reload.gif

Copy file name to clipboard
223 KB
Loading

‎docs/guide/hot-reload.md

Copy file name to clipboardExpand all lines: docs/guide/hot-reload.md
+1-1Lines changed: 1 addition & 1 deletion
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

‎docs/ru/guide/hot-reload.md

Copy file name to clipboardExpand all lines: docs/ru/guide/hot-reload.md
+1-1Lines changed: 1 addition & 1 deletion
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

‎docs/zh/guide/hot-reload.md

Copy file name to clipboardExpand all lines: docs/zh/guide/hot-reload.md
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.