Releases: addyosmani/critical
Releases · addyosmani/critical
v2.0.2
v2.0.1
v2.0.0
Breaking
- Drop support for Node.js < 10
- Drop
include
andtimeout
options as they can be specified in thepenthouse
options. - Drop options
styleTarget
&dest
in favour oftarget
You can specify either a css file, an html file or an object{css: dest.css, html: dest.html}
if you want to store both. We may also add an extract target here in a future release. - Drop options
destFolder
,folder
andpathPrefix
. We tried our best to improve the way critical auto-detects the paths to used assets in the critical css which should suit for most cases. If this doesn't work out you can use the newrebase
option to either specify the location of the css & the html file like this:{from: '/styles/main.css', to: '/en/test.html'}
. You can also pass a callback function to dynamically compute the path or specify a cdn for example. We utilizepostcss-url
for this task.
Features
- Add the ability to specify used css files using file globs. See supported
minimatch
patterns.
Maintenance
- Due to some limitations with modern css features we replaced
filter-css
as the library of choice for handling ignores with postcss-discard. We tried to keep things backwards compatible but you may have to change yourignore
configuration. - Bump dependencies
- Use Jest for testing
v1.3.10
v2.0.0-27
v2.0.0-26
v2.0.0-25
v2.0.0-24
- Chore/bump (#442) 78f3739
- Bump dependencies (#441) 9b94b8a
- CI: switch to
actions/checkout@v2
6a4bbab - Remove execa and read-pkg-up (#423) bc987b4
- Update dependencies. (#418) 92573f6
- fix: sorts dimensions so we don't mess up the css order (#415) (#428) 37307a7
- Typo fix c23f027
- Remove unused devDependencies. (#420) 71d4172