How to use CriticalCSS
- Install it here
npm i -D critical
npm install puppeteer
- Run the css generator:
node CriticalCSSGenerator.js
- Move the
.cssfiles from the current directory to theCriticalCSS/folder (overwrite existing files)
npm i -D critical
npm install puppeteer
node CriticalCSSGenerator.js
.css files from the current directory to the CriticalCSS/ folder (overwrite existing files)