[关闭]
@a06062125 2016-10-10T16:35:25.000000Z 字数 1056 阅读 386

Postcss

未分类


在此输入正文

需要过滤的属性值

Emoji Unicode

  1. 正则
    因为新的
  1. /* original, not complete */
  2. new RegExp('&#x1F[0-9]{3};', 'i')
  3. /* Right */
  4. new RegExp('&#x1F[0-9][0-9A-F]{2};', 'i')

stylelint

stylelint

  1. {
  2. "rules": {
  3. "at-rule-no-vendor-prefix": true,
  4. "selector-max-compound-selectors": 5,
  5. "function-blacklist": ["hsl", "hsla"],
  6. "no-unsupported-browser-features": {
  7. "browsers": "> 1%, last 2 versions, ie >= 8"
  8. },
  9. "declaration-property-value-blacklist": {
  10. "transform": ["/scale3d/", "/rotate3d/", "/translate3d/", "/translateZ/"],
  11. "backface-visibility": ["hidden"],
  12. "perspective": ["/\\d+/"]
  13. }
  14. }
  15. }

需要过滤的步骤
If you use autoprefixer you'll want to disallow vendor prefixes using:
at-rule-no-vendor-prefix

Control specificity using:

级联最大长度
selector-max-compound-selectors

declaration-property-value-blacklist

Specify acceptable selector types, units, properties, functions and words in comments using:
color-no-hex


gulp

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注