addyosmani / addyosmani/critical

Please provide documentation for --ignore for cli

Open
#518 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.3k
Forks
390
PR merge metrics
No merged PRs in 30d

Description

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,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.