Install purgecss-with-woocommerce
:
yarn add purgecss-with-woocommerce --dev
import Purgecss from 'purgecss'
import purgecssWoocommerce from 'purgecss-with-woocommerce'
new Purgecss({
whitelist: [
...purgecssWoocommerce.whitelist,
// your whitelist ...
],
whitelistPatterns: [
...purgecssWoocommerce.whitelistPatterns,
// your whitelistPatterns ...
]
});
const Purgecss = require('purgecss');
const purgecssWoocommerce = require('purgecss-with-woocommerce');
new Purgecss({
whitelist: [
...purgecssWoocommerce.whitelist,
// your whitelist ...
],
whitelistPatterns: [
...purgecssWoocommerce.whitelistPatterns,
// your whitelistPatterns ...
]
});
This project is licensed under the MIT License - see the LICENSE file for details.