Releases: GoogleChromeLabs/critters
critters-webpack-plugin-3.0.2
What's Changed
- Updated to Critters 0.0.16
- fix: add missing peer dependency
html-webpack-plugin
by @merceyz in #91 - fix: add createRequire for try/catched require('html-webpack-plugin').getHooks(compilation) by @dmnsgn in #85
New Contributors
Full Changelog: critters-webpack-plugin-3.0.1...critters-webpack-plugin-3.0.2
critters-0.0.16
What's Changed
- Add support for
:where
selector by @jeripeierSBB in #93 - Fix inlining of
-webkit-keyframes
(often generated by scss) by @JessicaSachs in #96 (see #86) - Fix fs import breaking in ESM builds by @developit in #97
- Document
preload:false
option by @kurtextrem in #95
New Contributors
- @JessicaSachs made their first contribution in #96
- @kurtextrem made their first contribution in #95
- @jeripeierSBB made their first contribution in #93
Full Changelog: critters-0.0.15...critters-0.0.16
critters-webpack-plugin-3.0.1
- Updates internal
critters
dependency to 0.0.15 (#89, thanks @rschristian)
critters 0.0.15
- Bugfix: add missing getter for
document.head
(#87, thanks @rschristian!)
critters-webpack-plugin 3.0.0
What's Changed
critters-webpack-plugin
is now powered by a refactored standalonecritters
module. Processing now uses JSDOM and css-select (huge thanks thanks @janicklas-ralph and @alan-agius4 - #61, #80, #82)- Added support for html-webpack-plugin V4 (thank you @alexjie! #62, #84)
- Add swap-high preload mode by @developit in #56
Bug Fixes
- skip processing of remote stylesheets by @alan-agius4 in #75, #83
- Improve TypeScript typings by @developit in #76
- Use a real value for swap media by @developit in #39
Full Changelog: 2.5.0...critters-webpack-plugin-3.0.0
critters-0.0.13
This fixes a bug in [email protected]
where HTTP (as opposed to HTTPS) remote stylesheets were not skipped (thanks @alan-agius4 - #83)
Full Changelog: critters-0.0.12...critters-0.0.13
Critters 0.0.12
What's Changed
- Update parser to postcss by @janicklas-ralph in #80
- fix: update css-select to version 4 by @alan-agius4 in #82
- fix: skip processing of remote stylesheets by @alan-agius4 in #75
- Improve TypeScript typings by @developit in #76
- Add swap-high preload mode by @developit in #56
Full Changelog: 57c4b40...critters-0.0.12
1.3.5 (patch release for legacy 1.x versions)
This is a patch release for Critters 1.x, which includes a backported fix for a bug where Keyframe rules would be erroneously treated as non-critical CSS. Special thanks to @filoozom and @pathacks for pointing out this should be backported and doing the work.
Please note this fix has already been shipped in Critters 2.x.
For those looking to install 1.x directly: npm i critters-webpack-plugin@legacy
2.5.0
- Adds a new
additionalStylesheets
option, which allows inlining the critical styles from any emitted Webpack CSS asset matching the given pattern(s). Thanks @prateekbh for implementing this in #45!
plugins: [
new CrittersPlugin({
// inline styles from all CSS files, even if not referenced from our HTML:
includeMatchingStylesheets: ['*.css']
})
]