You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended configuration for using PurgeCSS does not appear to work with the latest
version of PurgeCSS.
Currently it the docs recommend:
// postcss.config.jsconstpurgecss=require('@fullhuman/postcss-purgecss')({// Specify the paths to all of the template files in your project content: ['./src/**/*.html','./src/**/*.vue','./src/**/*.jsx',// etc.],// Include any special characters you're using in this regular expressiondefaultExtractor: content=>content.match(/[A-Za-z0-9-_:/]+/g)||[]})
But it should use the extractor config recommended here in the current docs,
it should look like:
// postcss.config.jsconstpurgecss=require('@fullhuman/postcss-purgecss')({// Specify the paths to all of the template files in your project content: ['./src/**/*.html','./src/**/*.vue','./src/**/*.jsx',// etc.],// Include any special characters you're using in this regular expressionextractors: [{extractor: classPurgeExtractor{staticextract(content){// return array of css selectorsreturncontent.match(/[A-Za-z0-9-_:/]+/g)||[]}},extensions: ["html","vue","jsx"]}]}
The text was updated successfully, but these errors were encountered:
The recommended configuration for using PurgeCSS does not appear to work with the latest
version of PurgeCSS.
Currently it the docs recommend:
But it should use the extractor config recommended here in
the current docs,
it should look like:
The text was updated successfully, but these errors were encountered: