Package Exports
- @roots/bud-library
Readme
@roots/bud-library
Adds dynamic link library support to Bud
Summary
app.library differs from app.vendor in that it doesn't just separate the vendored code from the application code, but actually stops the vendored assets from needing to be rebuilt at all.
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 --devUsage
module.exports = (app) =>
app.use("@roots/bud-library").library(["react", "react-dom", "react-forms"]);Pass app.library the module you would like to add to the DLL cache:
app.library("jquery");Multiple modules can be added using an array:
app.library(["jquery", "bootstrap"]);Contributing
Contributions are welcome from everyone.
We have contributing guidelines to help you get started.
Bud sponsors
Help support our open-source development efforts by becoming a patron.
Community
Keep track of development and community news.
- Participate on the Roots Discourse
- Follow @rootswp on Twitter
- Read and subscribe to the Roots Blog
- Subscribe to the Roots Newsletter
- Listen to the Roots Radio podcast