Skip to content

Releases: addyosmani/critical

v2.0.2

18 Aug 22:52
Compare
Choose a tag to compare

v2.0.1...v2.0.2

v2.0.1

17 Jun 05:59
Compare
Choose a tag to compare
  • Removes DeprecationWarning triggered by got 168ba12

v2.0.0...v2.0.1

v2.0.0

16 Jun 21:50
Compare
Choose a tag to compare

Breaking

  • Drop support for Node.js < 10
  • Drop include and timeout options as they can be specified in the penthouse options.
  • Drop options styleTarget & dest in favour of target
    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 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.

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 your ignore configuration.
  • Bump dependencies
  • Use Jest for testing

v1.3.10

16 Jun 21:40
Compare
Choose a tag to compare
  • CI: switch to actions/checkout@v2 b9c17ef

v1.3.9...v1.3.10

v2.0.0-27

11 Jun 23:01
Compare
Choose a tag to compare
v2.0.0-27 Pre-release
Pre-release

v2.0.0-26...v2.0.0-27

v2.0.0-26

31 May 23:06
Compare
Choose a tag to compare
v2.0.0-26 Pre-release
Pre-release

v2.0.0-25...v2.0.0-26

v2.0.0-25

24 May 21:59
Compare
Choose a tag to compare
v2.0.0-25 Pre-release
Pre-release

v2.0.0-24...v2.0.0-25

v2.0.0-24

08 Apr 22:00
Compare
Choose a tag to compare

v2.0.0-23...v2.0.0-24

v1.3.9

01 Dec 22:31
Compare
Choose a tag to compare
  • 1.x: use destructuring when importing lodash (#433) bd24282

v1.3.8...v1.3.9

Thanks @XhmikosR

v1.3.8

30 Nov 23:06
Compare
Choose a tag to compare

v1.3.7...v1.3.8

Thanks @XhmikosR