Skip to content

生成slot文件中,使用fs.writeFile代替emitFile,修复不能热更的bug #14

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

Closed
wants to merge 8 commits into from

Conversation

steinslin
Copy link
Member

现在是用setTimeout延迟emitFile的执行,在npm run dev的时候能正确输出文件,但是无法热更,可能是webpack执行完毕了,但还没跑的emitFile被阻止了。所以这里改成使用fs.writeFile

@jyootai
Copy link
Member

jyootai commented Apr 28, 2018

👍 不过需要check 一下初次没有slots.wxml的情况

@steinslin
Copy link
Member Author

对,需要改下代码

@steinslin steinslin changed the base branch from master to develop May 1, 2018 14:07
@steinslin
Copy link
Member Author

这个打算合吗,合的话我解决下冲突

@aOrz
Copy link
Contributor

aOrz commented May 4, 2018

这个不是一个很好的解决方案,暂不合并

@steinslin
Copy link
Member Author

应该要用async来做吧

@fancymo
Copy link

fancymo commented Aug 5, 2019

不能热更的bug修复了吗

@1977474741
Copy link

修复了吗

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

Successfully merging this pull request may close these issues.

6 participants