Skip to content

v2.0.0

Compare
Choose a tag to compare
@bezoerb bezoerb released this 16 Jun 21:50
· 129 commits to master since this release

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