Skip to content

0.6.0

Compare
Choose a tag to compare
@bezoerb bezoerb released this 07 Jul 14:52
· 476 commits to master since this release

This release brings some great changes to the Critical API to make it more stable and easy to use.

New Features

  • Introduced a new stream method which lets you integrate critical lot a lot easier with gulp
  • Unified options across stream cli and module
  • Added new options to customize critical for your production needs
    • pathPrefix Path to prepend CSS assets with
    • ignore Ignore CSS selectors
  • The Node.js module now returns a promise when no callback is provided

Deprecation notice (0.6.x)

Command-line interface (CLI)
  • The option htmlTarget has been deprecated and will be removed in 1.0.0
  • The option styleTarget has been deprecated and will be removed in 1.0.0

Use the inline flag to inline the critical CSS to your HTML markup

Node.js module
  • The method generateInline has been deprecated and will be removed in 1.0.0
  • The method inline has been deprecated and will be removed in 1.0.0
  • The option htmlTarget has been deprecated and will be removed in 1.0.0
  • The option styleTarget has been deprecated and will be removed in 1.0.0

Use the generate method along with the inline option to inline your critical-path CSS directly.

Commits