-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Vue CLI 5项目中Webpack插件错误 #2798
Comments
由于缺乏足够的信息(github、stackblitz、codesandbox等可复现仓库),我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。如果只是单独的技术咨询,可移步 https://qiankun.umijs.org/#-community 交流~ |
我记得webpack是有API获取到实际的版本的 |
社区找了一圈,也断点看了运行时的对象,没看到的样子😂 |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述:
在Vue CLI 5项目中使用Qiankun webpack插件时遇到两个主要问题:
入口JS文件识别不准确: Vue CLI 5默认配置下的html-webpack-plugin会将编译后的JS文件放置在head标签末尾,并添加defer属性。Qiankun插件目前的逻辑是识别最后一个非defer或async的script标签作为入口JS,这导致了识别错误。
webpack版本识别失败: 由于业务项目的
package.json
中未直接包含webpack依赖,插件无法读取到当前业务仓库使用的webpack版本,导致插件运行出错。复现步骤:
预期行为:
实际行为:
建议的解决方案:
The text was updated successfully, but these errors were encountered: