Skip to content

Releases: anantoghosh/gatsby-plugin-purgecss

Release 6.2.1

09 Jan 10:07
Compare
Choose a tag to compare

6.2.1 (2023-01-09)

  • Update docs

Release 6.2.0

08 Jan 21:10
Compare
Choose a tag to compare

6.2.0 (2023-01-08)

Features

  • Support gatsby 5 (7a0df4f)
  • Update packages

Release 6.1.2

09 Apr 14:30
Compare
Choose a tag to compare

6.1.2 (2022-04-09)

  • Maintenance release.
  • Updated packages.

Release 6.1.1

01 Mar 15:24
Compare
Choose a tag to compare

6.1.1 (2022-03-01)

  • Maintenance release.
  • Updated packages.

Release 6.1.0

31 Oct 22:54
Compare
Choose a tag to compare

6.1.0 (2021-10-31)

Features

  • add support and test for gatsby v4 (691b322)

Release 6.0.2

16 May 13:09
Compare
Choose a tag to compare

6.0.2 (2021-05-16)

Bug Fixes

Release 6.0.1

12 Apr 08:35
Compare
Choose a tag to compare

6.0.1 (2021-04-12)

Bug Fixes

  • Set correct peerDependency on gatsby (c5df7f1)

Release 6.0.0

08 Mar 15:17
Compare
Choose a tag to compare

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.

Release 5.0.0

23 Mar 18:33
Compare
Choose a tag to compare

5.0.0 (2020-03-23)

Features

  • Update tailwind regex (791c06a)
  • Upgrade to PurgeCSS v2 (d2e8831)
  • Loader now runs asynchronously

BREAKING CHANGES

  • Major update to purgecss may require updated config
    If using extractors, change to the new extractor format
extractors: [
  {
    extractor: (content) => {
      // return array of css selectors
    },
    extensions: ['js']
  }
]

Release 4.0.1

27 Aug 09:15
Compare
Choose a tag to compare

4.0.1 (2019-08-27)

Bug Fixes

  • Add md and mdx extension to the tailwind extractor (ba2d81e)