Skip to main content

bud.persist

Configure compiler caching.

By default bud.js uses a filesystem cache.

Usage

Enable filesystem caching:

bud.persist()
bud.persist(`filesystem`)

Enable memory caching:

bud.persist(`memory`)

Disable caching:

bud.persist(false)

Use as a bud.js callback. This is the same as enabling caching with the default configuration (filesystem).

bud.when(bud.isDevelopment, bud.persist)
bud.tap(bud.persist)