We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Critical should have the option of only pass the css and avoid all the boilerplate
generate({ rawCss: `html{display:block;}.someclass{color:red}` }, (err, output) => { console.log(output) });
expected output:
html{display:block;}
The text was updated successfully, but these errors were encountered:
feat: allow plain css passed as option
3c5913e
See #291 and #584
feat: allow plain css passed as option (#588)
526c767
@TheElegantCoding from v7.1.0 on you should be able to also pass plain css to critical using the css option:
generate({ css: `html{display:block;}.someclass{color:red}` }, (err, output) => { console.log(output) });
or via CLI:
critical http://my-domain.com -c 'html{display:block;}.someclass{color:red}'
Sorry, something went wrong.
please verify
No branches or pull requests
Critical should have the option of only pass the css and avoid all the boilerplate
expected output:
The text was updated successfully, but these errors were encountered: