Skip to main content

bud.devtool

Enable or disable sourcemaps.

You may pass your own configuration to the function, although this is optional.

For more information on sourcemap options see webpack's documentation.

Usage

Enable sourcemaps

bud.config.js
bud.devtool()

Disable sourcemaps

bud.config.js
bud.devtool(false)

Override the default configuration

bud.config.js
bud.devtool('inline-cheap-module-source-map')

Enable sourcemaps only in development (see bud.when for extra clarity)

bud.config.js
bud.when(bud.isDevelopment, bud => bud.devtool())