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

请问编辑时预览功能是如何实现的? #39

Open
imcuttle opened this issue Oct 29, 2021 · 2 comments
Open

请问编辑时预览功能是如何实现的? #39

imcuttle opened this issue Oct 29, 2021 · 2 comments

Comments

@imcuttle
Copy link

我理解是前端实现了一套webpack机制,每次编辑修改,会导致前端 webpack 中 源码asset修改,进而触发 hmr 或者全量render

请问这套方案有开源的解决吗

@sparrow-js
Copy link
Owner

我理解是前端实现了一套webpack机制,每次编辑修改,会导致前端 webpack 中 源码asset修改,进而触发 hmr 或者全量render

请问这套方案有开源的解决吗

本地安装就是起了一个webpack的项目hmr更新,线上demo用的codesandbox 开源的

@imcuttle
Copy link
Author

imcuttle commented Nov 24, 2021

我理解是前端实现了一套webpack机制,每次编辑修改,会导致前端 webpack 中 源码asset修改,进而触发 hmr 或者全量render
请问这套方案有开源的解决吗

本地安装就是起了一个webpack的项目hmr更新,线上demo用的codesandbox 开源的

Hi, @sparrow-js 查阅 codesandbox-client 发现没有文档说明如何使用... 请问你是如何学习使用的呢,直接研究源码接的吗

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