Extract & Inline Critical-path CSS in HTML pages
APACHE-2.0 License
Bot releases are hidden (Show)
https://github.com/addyosmani/critical/compare/v3.1.0...v4.0.0
https://github.com/addyosmani/critical/compare/v3.0.1...v3.1.0
https://github.com/addyosmani/critical/compare/v3.0.0...v3.0.1
https://github.com/addyosmani/critical/compare/v2.0.6...v3.0.0
https://github.com/addyosmani/critical/compare/v2.0.5...v2.0.6
https://github.com/addyosmani/critical/compare/v2.0.4...v2.0.5
https://github.com/addyosmani/critical/compare/v2.0.3...v2.0.4
https://github.com/addyosmani/critical/compare/v2.0.2...v2.0.3
https://github.com/addyosmani/critical/compare/v2.0.1...v2.0.2
https://github.com/addyosmani/critical/compare/v2.0.0...v2.0.1
Published by bezoerb over 4 years ago
include
and timeout
options as they can be specified in the penthouse
options.styleTarget
& dest
in favour of target
{css: dest.css, html: dest.html}
if you want to store both. We may also add an extract target here in a future release.destFolder
, folder
and pathPrefix
. 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 new rebase
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 utilize postcss-url
for this task.minimatch
patterns.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 your ignore
configuration.actions/checkout@v2
b9c17efhttps://github.com/addyosmani/critical/compare/v1.3.9...v1.3.10
https://github.com/addyosmani/critical/compare/v2.0.0-26...v2.0.0-27
https://github.com/addyosmani/critical/compare/v2.0.0-25...v2.0.0-26
https://github.com/addyosmani/critical/compare/v2.0.0-24...v2.0.0-25
actions/checkout@v2
6a4bbabhttps://github.com/addyosmani/critical/compare/v2.0.0-23...v2.0.0-24
https://github.com/addyosmani/critical/compare/v1.3.8...v1.3.9
Thanks @XhmikosR
https://github.com/addyosmani/critical/compare/v1.3.7...v1.3.8
Thanks @XhmikosR
https://github.com/addyosmani/critical/compare/v2.0.0-22...v2.0.0-23
Thanks to @XhmikosR
https://github.com/addyosmani/critical/compare/v1.3.6...v1.3.7