0.1.2 • Published 7 years ago
holistic-router-criticalcss v0.1.2
holistic-router-criticalcss
extracting inline critical css from html. Uses chrome headless, blends seamlessly with holistic-router
Install
npm install --save holistic-router-criticalcss
Usage
Have your holistic-router config:
// holistic-router.config.js
module.exports = {
...
routes: {
"/": {
...
}
...
},
...
criticalcss: {
stylesheets: "#style", // selector, which inline stylesheets to replace
save: "./build", // where to save critical and uncritical css
path: "" // relative path where your build folder is served
// for mor options see get-critical-css package
}
}
Call the critical css cli:
get-critical-css holistic-router.config.js
License
Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.