Releases: addyosmani/critical
Releases · addyosmani/critical
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
v1.3.9
v1.3.8
v2.0.0-23
- package.json: Node.js >= 8.10.0 is needed. (#412) 53f8d32
- Update dependencies (#411) 2b71361
- Merge pull request #409 from addyosmani/deps 2b5114f
- Update nock to v11.5.0 and regenerate package-lock.json c883591
- Switch to GitHub Actions CI. (#403) 1008ff5
- Update @hapi/joi to v16.1.7 23207ed
- Update execa to v3.2.0 38ebe04
- Bump dependencies 2777e16
- Fix the new lint errors. 9533ad6
- Update xo to v0.25.3. 8da6923
- Update devDependencies. (#405) 789d8e5
Thanks to @XhmikosR