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

dawn的自动更新用的是browserSync,为什么不用HMR呢? #96

Closed
zhouhailong opened this issue Nov 27, 2017 · 1 comment
Closed

Comments

@zhouhailong
Copy link

dawn的自动更新用的是browserSync,为什么不用HMR呢?

@Houfeng
Copy link
Collaborator

Houfeng commented Dec 14, 2017

browserSync 是中间件之一,能够提供自动刷新的能力,它不仅为基于 webpack 的工程,其它类型的工程,比如 doc 工程也能用。

当然,针对 webpack 类的工程,也可以再写一个新的中间件,用于配合 webpack 中间件开启 HMR

@Houfeng Houfeng closed this as completed Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants