critical-css-generator
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "critical-css-generator", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "critical", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,11 +0,11 @@ | ||
# Critical CSS | ||
# Critical CSS Generator | ||
Extract critical css (above the fold) from a specific site using puppeteer. | ||
Extract critical css (above the fold) for a specific site using puppeteer. | ||
### Usage | ||
1) `npm i https://s3-eu-west-1.amazonaws.com/vp-critical-css/critical-css-0.0.1.tgz` | ||
1) `npm i critical-css-generator` | ||
2) Run the following: | ||
``` | ||
const criticalCss = require('critical-css').criticalCss; | ||
const critical = require('critical-css-generator'); | ||
critical.generate({ | ||
@@ -12,0 +12,0 @@ url: 'https://www.vistaprint.com/business-cards', |
6081