6.0.0 (2021-03-02)
BREAKING CHANGES
- Updated to PurgeCSS 4.
- Changes to options format.
Migration from < v6
- Remove
rejected
option. Instead use printSummary: false
if you don't want the stats to show.
- 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.