Gatsby Plugin Purgecss Versions Save

Gatsby plugin for purgecss. Removes unused css/sass/less/stylus. Supports tailwind, bootstrap, bulma etc.

6.2.1

1 year ago

6.2.1 (2023-01-09)

  • Update docs

6.2.0

1 year ago

6.2.0 (2023-01-08)

Features

  • Support gatsby 5 (7a0df4f)
  • Update packages

6.1.2

1 year ago

6.1.2 (2022-04-09)

  • Maintenance release.
  • Updated packages.

6.1.1

2 years ago

6.1.1 (2022-03-01)

  • Maintenance release.
  • Updated packages.

6.1.0

2 years ago

6.1.0 (2021-10-31)

Features

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

6.0.2

2 years ago

6.0.2 (2021-05-16)

Bug Fixes

6.0.1

2 years ago

6.0.1 (2021-04-12)

Bug Fixes

  • Set correct peerDependency on gatsby (c5df7f1)

6.0.0

3 years ago

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.

5.0.0

4 years ago

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']
  }
]

4.0.1

4 years ago

4.0.1 (2019-08-27)

Bug Fixes

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