0.6.0
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 withgulp
- Unified
options
acrossstream
cli
andmodule
- Added new
options
to customize critical for your production needspathPrefix
Path to prepend CSS assets withignore
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 in1.0.0
- The option
styleTarget
has been deprecated and will be removed in1.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 in1.0.0
- The method
inline
has been deprecated and will be removed in1.0.0
- The option
htmlTarget
has been deprecated and will be removed in1.0.0
- The option
styleTarget
has been deprecated and will be removed in1.0.0
Use the generate
method along with the inline
option to inline your critical-path CSS directly.
Commits
- 6691a78 Tests adjusted
- 4f7b974 Update README.md
- df66578 Update CLI tests
- d4bb1dd Fixed tests & locked clean-css version
- 26e40f9 Minor package.json tweak
- aff8afd Correct expectation for adaptive
- 22627a0 Updated tests for new clean-css 3.2.7
- 0977b7c Bumped dependency (also see 0788c73, 056b787, b051f6a, 73a4fed and 147da54)
- 2d63464 Don't encode entities
- d546647 Removed parallel testcase
- b3b8d54 Added 'ignore' option
- cf57c06 Deprecated some more things
- bfb880d Deprecated htmltarget & styletarget for CLI and introduced --inline
- f2428a4 Update README.md
- d78b6ef Added pathPrefix support for CLI
- 63d63b5 Normalize newlines
- 96e99e0 Added test for pathPrefix option
- 3739672 Allows pathPrefix to be set through options. Updates README
- 5927d09 Added Gulp stream support