addyosmani / addyosmani/critical

Please provide documentation for --ignore for cli

Đang mở
#518 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
10.3k
Fork
390
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

How to translate:
```
// ignore CSS rules
ignore: {
atrule: ['@font-face'],
rule: [/some-regexp/],
decl: (node, value) => /big-image\.png/.test(value),
},
```
when using cli.

By the way, `--dimensions W1xH1,W2xH2` didn't work for me while stated in #457:
```
Error: ConfigError: "dimensions" must be an array
```
Hopefully: `--dimensions W1xH1 --dimensions W2xH2` did. Good to know we can use this option multiple times.

Best regards,

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.