使用口香糖胶化/最小化聚合物纤维网组件

编程入门 行业动态 更新时间:2024-10-26 10:33:27
本文介绍了使用口香糖胶化/最小化聚合物纤维网组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用gulp的uglify插件来缩小我的Web组件,但失败了,因为它无法识别自定义html标签.

I am trying to minify my web components using gulp's uglify plugin but it fails because it does not recognize the custom html tags.

有没有可以减少包含自定义标签的html的gulp插件?

Are there any gulp plugins that can minify html containing custom tags?

推荐答案

要做到这一点是非常困难的.您可以使用 crisper 插件将脚本分解为自己的文件.然后,您可以缩小脚本源.然后使用 vulcanize 将脚本内联回HTML.

To do this is quite the challenge. You use the crisper plugin to factor out the script into it's own file. You can then minify the script source. Afterwards use vulcanize to inline your script back into the HTML.

更多推荐

使用口香糖胶化/最小化聚合物纤维网组件

本文发布于:2023-08-03 08:04:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1285470.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最小化   聚合物   口香糖   组件   纤维

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!