Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Julien-prrs/purgecss-with-woocommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Purgecss with Wordpress & Woocommerce

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published