Releases: anantoghosh/gatsby-plugin-purgecss
Releases · anantoghosh/gatsby-plugin-purgecss
Release 6.2.1
6.2.1 (2023-01-09)
- Update docs
Release 6.2.0
Release 6.1.2
6.1.2 (2022-04-09)
- Maintenance release.
- Updated packages.
Release 6.1.1
6.1.1 (2022-03-01)
- Maintenance release.
- Updated packages.
Release 6.1.0
Release 6.0.2
Release 6.0.1
Release 6.0.0
6.0.0 (2021-03-02)
BREAKING CHANGES
- Updated to PurgeCSS 4.
- Changes to options format.
Migration from < v6
- Remove
rejected
option. Instead useprintSummary: false
if you don't want the stats to show. - PurgeCSS options are now defined under PurgeCSSOptions
- Move whitelist to PurgeCSSOptions -> safelist
- Move content to PurgeCSSOptions -> content
- Move and update any other Purge
CSS options used under the same key.
https://purgecss.com/configuration.html#options
// 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
- update tailwind regex (f7602e3)
Features
- Move to typescript
- Update to latest PurgeCSS v4.
Release 5.0.0
5.0.0 (2020-03-23)
Features
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']
}
]