0.0.1 • Published 7 years ago

opine-criticalcss v0.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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 for
  • opine.criticalcss.height: the height of the window to generate critical CSS for