javascript - gulp的gulp-clean-css压缩插件参数问题?

查看:128
本文介绍了javascript - gulp的gulp-clean-css压缩插件参数问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

如图,compatibility这个参数似乎是适应的意思,这就搞不懂了,压缩个代码还要考虑兼容ie8的吗?

解决方案

gulp-clean-css底层用的是clean-css,更多参数可以看clean-css的内容。

关于这个参数: 其文档也有说明>>

For example, this declaration --compatibility 'ie8,+units.rem' will ensure IE8 compatiblity while enabling rem units so the following style margin:0px 0rem can be shortened to margin:0, while in pure IE8 mode it can't be.

这篇关于javascript - gulp的gulp-clean-css压缩插件参数问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆