@roots/bud-entrypoints
@roots/bud-entrypoints generates a manifest of compiled assets to use in your server-side application.
Installation​
- npm
- Yarn
- pnpm
npm install @roots/bud-entrypoints --save-dev
yarn add @roots/bud-entrypoints --dev
pnpm add @roots/bud-entrypoints --save-dev
entrypoints.json​
Assets are broken down by entrypoint and then filetype.
If a runtime is being generated it should always be the first item in the js
array.
entrypoints.json
{
"entrypoint-a": {
"js": ["runtime.js", "entrypoint-a.js"],
"css": ["entrypoint-a.css"]
},
"entrypoint-b": {
"js": ["runtime.js", "entrypoint-b.js"],
"css": ["entrypoint-b.css"]
}
}