-
Notifications
You must be signed in to change notification settings - Fork 38
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
async依赖打包进pkg目录 #21
Comments
所有打包阶段的插件都能拿到 map 表,其实也不是 laoder 分析出来的,在打包前就分析出来了, loader 只是基于这些信息,自动把 js 和 css 插入到 html 文本里面。 |
require.resourceMap({ 这个html的依赖的异步js不是loader分析出来的么? |
另外这里asyncs的文件怎么没有打包了? |
打包分两种:
关于以上两种打包方式各有优缺点:
|
个人观点,欢迎指正。 |
includeAsyncs 只是个配置项,默认不开启,当然就在源码配置项里面注释掉了。个人认为,如果异步资源比较多,可以考虑开启此功能。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
loader已经把页面的同步和异步依赖分析出来了,那么其他的插件有办法使用这个依赖项的map表了?
The text was updated successfully, but these errors were encountered: