Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack-HRM->热更细错别字修改为热更新 #404

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/webpack/HMR.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if(module.hot){

根据变化的内容生成两个补丁文件:`manifest`(包含了 `hash` 和 `chundId `,用来说明变化的内容)和` chunk.js` 模块

由于`socket`服务器在`HMR Runtime` 和 `HMR Server`之间建立 `websocket`链接,当文件发生改动的时候,服务端会向浏览器推送一条消息,消息包含文件改动后生成的`hash`值,如下图的`h`属性,作为下一次热更细的标识
由于`socket`服务器在`HMR Runtime` 和 `HMR Server`之间建立 `websocket`链接,当文件发生改动的时候,服务端会向浏览器推送一条消息,消息包含文件改动后生成的`hash`值,如下图的`h`属性,作为下一次热更新的标识

![](https://static.vue-js.com/05a0edf0-ad4a-11eb-85f6-6fac77c0c9b3.png)

Expand Down