Skip to main content

@roots/bud-purgecss

PurgeCSS support can be added by installing the @roots/bud-purgecss extension.

Installation

npm install @roots/bud-purgecss --save-dev

purgecss-with-wordpress is optional but recommended when working with WordPress.

npm install @roots/bud-purgecss purgecss-with-wordpress --save-dev

Configuration

bud.config.js
import purgeCssWordPress from `purgecss-with-wordpress`

bud.purgecss({
content: [bud.path(`resources/views/**`)],
safelist: [...purgeCssWordPress.safelist],
})