addyosmani / addyosmani/critical

Please provide documentation for --ignore for cli

オープン
#518 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
10.3k
フォーク
390
PR マージ指標
30日以内にマージされた PR はありません

説明

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,

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。