Skip to main content

@roots/bud-library

danger

This extension is deprecated. The default cache configuration is better than using this extension.

The @roots/bud-library extension adds the ability to create a long-lived, highly-cacheable DLL from a list of modules.

Modules can be added to the DLL using the bud.library function.

The first build will likely take longer as the DLL will need to be compiled, but subsequent builds should see a noticeable reduction in build time.

Installation

yarn add @roots/bud-library --dev

Usage

Pass bud.library the module you would like to add to the DLL cache:

bud.config.js
bud.library('jquery')

Multiple modules can be added using an array:

bud.config.js
bud.library(['jquery', 'bootstrap'])