Skip to content

Release 6.0.0

Compare
Choose a tag to compare
@anantoghosh anantoghosh released this 08 Mar 15:17
· 126 commits to master since this release

6.0.0 (2021-03-02)

BREAKING CHANGES

  • Updated to PurgeCSS 4.
  • Changes to options format.

Migration from < v6

  1. Remove rejected option. Instead use printSummary: false if you don't want the stats to show.
  2. PurgeCSS options are now defined under PurgeCSSOptions
// gatsby-config.js BEFORE
    {
      resolve: `gatsby-plugin-purgecss`,
      options: {
        rejected: true,
        printRejected:true,
        ignore: ['/ignore.css'],
        whitelist: ['mySelector']
      },
    },
// gatsby-config.js AFTER
    {
      resolve: `gatsby-plugin-purgecss`,
      options: {
        printRejected:true,
        ignore: ['/ignore.css'],
        purgeCSSOptions: {
          safelist: ['mySelector']
        },
      },
    },

Bug Fixes

Features

  • Move to typescript
  • Update to latest PurgeCSS v4.