Skip to main content

@roots/bud-purgecss

By default, bud does not purge any styles on its own. PurgeCSS support can be added by installing the @roots/bud-purgecss extension.

Installation

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

yarn add @roots/bud-purgecss purgecss-with-wordpress --dev

Configuration

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

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