-
Notifications
You must be signed in to change notification settings - Fork 258
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
beidou-webpack 会导致自动重启 #184
Comments
能提供一下复现方法吗? |
@njugray 大概有30多个页面,大概有20个页面都有 worker-loader (worker-loader 会触发子编译,worker-loader 的资源大概有 10来个) |
@icai 这种场景确实有可能会堆栈溢出,能确认是 JSON 序列化导致的么,本地注释掉对应代码可以正常运行么? 如果是页面过多,最终还是需要通过提高内存占用限制来解决 relate issue: webpack/webpack#6389 (comment) |
@njugray 还有 webpack 等待时间巨慢,能否实行异步编译 |
dev启动的时候,webpack 是在 agent 中异步拉起的,理论上node server 启动不受影响,只是请求会被pending住。 这个等待时间就是 webpack-dev-server的启动时间 |
@njugray 假如 master线程触发 watch (比如修改了 controller,service 等),agent上的 webpack 会重启吗 |
@icai 不会,webpack重启只有在 entry 变化时触发自动重启,或在控制台输入 rs 手动重启 |
👇👇👇👇
Node Version: 11.10.0
Beidou Version: 2.2.1
Plugin Name And Version:
React/ReactDOM Versions:
Platform: Mac
Mini Showcase Repository:
Other Info:
System:
OS: macOS 10.14.5
Binaries:
Node: 11.10.0 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Browsers:
Chrome: 75.0.3770.100
Firefox: Not Found
Safari: 12.1.1
npmPackages:
typescript: ^3.3.0 => 3.5.3 (2.9.2)
Current behavior
Expected behavior
The text was updated successfully, but these errors were encountered: