Skip to main content

bud.hash

Configure filename hashing.

Usage

Enable hashing

bud.config.ts
bud.hash()
bud.config.ts
bud.hash(true)

Disable hashing

bud.config.ts
bud.hash(false)

Enable hashing with a custom format:

bud.config.ts
bud.hash(`contenthash:12`)

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

bud.config.ts
bud.when(bud.isProduction, bud.hash)
bud.config.ts
bud.tap(bud.hash)