未验证 提交 7e9d0c1f 编写于 作者: C Carlos Rodrigues 提交者: GitHub

fix (#2392): hmr issue and watch for chokidar v3 (#2436)

* fix: watch for chokidar v3

* chore: remove comments
上级 017aa692
......@@ -207,8 +207,12 @@ module.exports = class DevProcess extends EventEmitter {
publicPath: this.context.base,
watchOptions: {
ignored: [
/node_modules/,
`!${this.context.tempPath}/**`
(x) => {
if (x.includes(this.context.tempPath)) {
return false
}
return /node_modules/.test(x)
}
]
},
historyApiFallback: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册