Skip to main content

bud.minimize

Configure code optimization options.

Usage

Enable optimization:

bud.minimize()

Disable optimization:

bud.minimize(false)

Use a string or array of strings to enable or disable particular handlers. Possible values: css, js.

bud.minimize(`css`)
bud.minimize([`css`, `js`])

Use as a bud.js callback. This is the same as enabling minimization with the default configuration.

bud.when(bud.isProduction, bud.minimize)
bud.tap(bud.minimize)