/purgecss-with-woocommerce

Purgecss with Wordpress & Woocommerce

Primary LanguageJavaScriptMIT LicenseMIT

Purgecss for Wordpress & Woocommerce

Getting Started

Install purgecss-with-woocommerce:

yarn add purgecss-with-woocommerce --dev

Usage

With Import

import Purgecss from 'purgecss'
import purgecssWoocommerce from 'purgecss-with-woocommerce'

new Purgecss({
    whitelist: [
        ...purgecssWoocommerce.whitelist,
        // your whitelist ...
    ],
    whitelistPatterns: [
        ...purgecssWoocommerce.whitelistPatterns,
        // your whitelistPatterns ...
    ]
});

With require

const Purgecss = require('purgecss');
const purgecssWoocommerce = require('purgecss-with-woocommerce');

new Purgecss({
    whitelist: [
        ...purgecssWoocommerce.whitelist,
        // your whitelist ...
    ],
    whitelistPatterns: [
        ...purgecssWoocommerce.whitelistPatterns,
        // your whitelistPatterns ...
    ]
});

License

This project is licensed under the MIT License - see the LICENSE file for details.