opine-criticalcss
v0.0.1
Published
From a given CSS file and URL, outputs critical CSS to a file
Downloads
4
Readme
opine-criticalcss
This module analyses a CSS file and a URL at a given size, then outputs critical CSS to a file
Installation:
yarn add gulp gulp-opine opine-criticalcss
Configuration:
Reminder: with opine you can run gulp config-defaults
to print out the current
values of all configuration values that haven't been explicitly defined.
opine.criticalcss.sourceCSS
: a CSS source file to pull styling from (required)opine.criticalcss.sourceURL
: a URL for a page to apply styles to (required)opine.criticalcss.dest
: the output path and filename (required)opine.criticalcss.width
: the width of the window to generate critical CSS foropine.criticalcss.height
: the height of the window to generate critical CSS for