Skip to main content

bud.splitChunks

Separate vendor code from application code.

Usage

Enable code splitting:

bud.splitChunks()

Explicitly enable code splitting:

bud.splitChunks(true)

Disable code splitting:

bud.splitChunks(false)

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

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