去html注释空行空格
去html空格插件
html-webpack-plugin依赖html-minifier对velocity模版文件压缩支持不好
此插件会去除html注释和内联的js、css注释,再将多空格替换为单空格。
usageplugins: [new HtmlRemoveWhitespacePlugin()]
plugins: [new HtmlRemoveWhitespacePlugin({ exclude: /test1/, //include: /test2/, })]
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。