Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1. yarn add critical --dev
2. copy paste this npm script
```
"scripts": {
"critical-css": "cat dist/index.html | critical --base dist/ --inline --minify > index.tmp && mv index.tmp dist/index.html"
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment