fis3-optimizer-dfy-html-minifier
v1.0.1
Published
主要针对官方插件fis-optimizer-html-minifie进行修复和升级
Downloads
6
Readme
fis3-optimizer-dfy-html-minifie
主要针对官方插件fis-optimizer-html-minifie进行修复和升级
- 修复无法压缩vue.js的简写方式
- 修复后端模板语法压缩失败
安装插件
全局安装
npm install -g fis3-optimizer-dfy-html-minifie
或者本地安装到项目所在目录。
npm install fis3-optimizer-dfy-html-minifie
fis-conf.js文件配置
fis..match('**.html', {
optimizer: fis.plugin('dfy-html-minifier',{
removeComments: true, //去掉注释
collapseWhitespace: true,
conservativeCollapse: true,
removeAttributeQuotes: true,
minifyJS: true, //压缩html内的js代码
minifyCSS: true
})
})