Purgecss with Wordpress
Based on the gist made by @frnwtr, purgecss-with-wordpress
is a set of templates for
Wordpress CMS.
Getting Started
Installation
You need to install purgecss first.
Install purgecss-with-wordpress
:
npm i --save-dev purgecss-with-wordpress
Usage
import Purgecss from 'purgecss'
import purgecssWordpress from 'purgecss-with-worpress'
const purgeCss = new Purgecss({
content: ['**/*.html'],
css: ['**/*.css'],
whitelist: purgecssWorpress.whitelist,
whitelistPatterns: purgecssWordpress.whitelistPatterns
})
const result = purgecss.purge()
Versioning
Purgecss-with-wordpress use SemVer for versioning.
Acknowledgment
Purgecss-with-wordpress is based on the gist made by @frnwtr
License
This project is licensed under the MIT License - see the LICENSE file
for details.