Created
October 7, 2017 06:42
-
-
Save oskarrough/c9895062be3f3d4928e3b8c3b460400a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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