Package Exports
- @principalstudio/principal-purgecss-extractor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@principalstudio/principal-purgecss-extractor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Principal Purgecss extractor
Improve version of purgecss-from-pug with fix and support for BEM mixins.
Currently, only support pug files
Installation
npm i -D @principalstudio/principal-purgecss-extractorUsage
See https://purgecss.com/extractors.html
For example with PostCSS
const principalExtractor = require('principal-purgecss-extractor');
const purgecss = require('@fullhuman/postcss-purgecss')
module.exports = {
plugins: [
purgecss({
content: ['./**/*.pug'],
extractors: [
{
extractor: principalExtractor,
extensions: ['pug'],
},
],
}),
]
}