Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to pass ignore option to command line? #511

Closed
markusfalk opened this issue Jul 25, 2021 · 1 comment
Closed

Is it possible to pass ignore option to command line? #511

markusfalk opened this issue Jul 25, 2021 · 1 comment

Comments

@markusfalk
Copy link

markusfalk commented Jul 25, 2021

I'm not sure wether this is a command line questions or a critical question.

I tried passing --ignore options via command line but it still extracts @font-face-rules to the inline style which breaks lighthouse rule "Ensure text remains visible during webfont load" even when using font-display: swap.

scripts: {
  "critical": "critical ./dist/index.html --base ./dist --ignore={atrule: ['@font-face']} --extract=true --inline > ./dist/critical.html",
}

Same when using quotes: --ignore='{atrule: ['@font-face']}'

What I like to achive is that all @font-face-rules are ignored when extracting styles from the css file.

any help would be appreciated :)

@bezoerb
Copy link
Collaborator

bezoerb commented Aug 10, 2022

See #518 (comment)

@bezoerb bezoerb closed this as completed Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants