Javascript 网页包替换html注释标记之间的内容
我怎样才能替换Javascript 网页包替换html注释标记之间的内容,javascript,webpack,Javascript,Webpack,我怎样才能替换 <!-- vendors.js - Start --> <script src="../node_modules/lodash/index.js"></script> <script src="../node_modules/jquery/dist/jquery.js"></script> <!--Replace with min.js--> <script src="../node_modules/j
<!-- vendors.js - Start -->
<script src="../node_modules/lodash/index.js"></script>
<script src="../node_modules/jquery/dist/jquery.js"></script> <!--Replace with min.js-->
<script src="../node_modules/jquery-ui/ui/core.js"></script>
<script src="../node_modules/jquery-ui/ui/widget.js"></script>
<script src="../node_modules/jquery-ui/ui/mouse.js"></script>
<script src="../node_modules/jquery-ui/ui/sortable.js"></script>
<script src="../node_modules/angular/angular.js"></script>
<script src="../node_modules/angular-animate/angular-animate.js"></script>
<!-- vendors.js - End -->
与
当webpack
捆绑时
使用
html替换网页包插件可以实现这一点吗?您列出的所有库都可以在上找到
我的建议是使用:并将这些依赖项注入到HTML文档中,而不是尝试将它们捆绑并添加到构建时间中
<script src="vendors.js"></script>