webpack如何根据组件htmlwebpackplugin引入script?

[复制链接]
查看11 | 回复1 | 2021-1-27 05:15:07 | 显示全部楼层 |阅读模式
例如现有n个模块以及公共模块common,若n个模块中部分模块引用了common模块,则打包index.html时标签script引入common.js,若不引用common模块则index.html文件不引入
分 -->
回复

使用道具 举报

千问 | 2021-1-27 05:15:07 | 显示全部楼层
https://blog.csdn.net/lhjuejiang/article/details/80216020?utm_source=blogxgwz3
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行