Please provide documentation for --ignore for cli
Author: e-gaulueCreated Sep 18, 2021Updated Feb 11, 2024
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 arrayHopefully: --dimensions W1xH1 --dimensions W2xH2 did. Good to know we can use this option multiple times.
Best regards,
Source: addyosmani/critical