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

hot-update.json 的路径问题 #1

Open
sorrycc opened this issue Dec 22, 2015 · 3 comments
Open

hot-update.json 的路径问题 #1

sorrycc opened this issue Dec 22, 2015 · 3 comments

Comments

@sorrycc
Copy link
Member

sorrycc commented Dec 22, 2015

比如 html 的路径是:/demo/a.html,请求的 hot-update.json 的路径会是 /demo/hot-update.json,404,不能正常刷新

@clarkhan
Copy link

clarkhan commented Apr 8, 2016

你好,这个问题是否解决,或者有思路? [email protected] 中把这项去掉了吗?

@sorrycc
Copy link
Member Author

sorrycc commented Apr 8, 2016

没有深入看这个问题,可以通过 proxy 配置来绕开。比如:

module.exports = {
  '/a.html': function(req, res) {
    const content = read(/demo/a.html);
    res.end(content);
  },
};

另外,如果你用 redux,可以尝试 dora-plugin-webpack-hmr 和这个脚手架

@clarkhan
Copy link

clarkhan commented Apr 8, 2016

恩,好的,谢谢。我们也先用临时方案,后面如果有精力解决了再反馈。

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