由于IE11的“单位”需要为零,因此我尝试设置Atom Beautify来美化我的SCSS,而不会从零值中删除“单位”。
例如:
.element {
flex: 1 1 0px; // 0px for IE
}
将被美化为
.element {
flex: 1 1 0; // 0px for IE
}
有人知道如何阻止Atom Beautify从零值中删除单位吗?
我的SCSS在Atom config.cson
中针对Atom Beautify的规则:
"atom-beautify":
scss:
beautify_on_save: true
convert_quotes: "single"
length_zero_no_unit: false
newline_between_rules: false
no_lead_zero: true
preserve_newlines: true
谢谢。