Skip to content

Commit

Permalink
馃摃 docs(none): entrypoints manifest (#2406)
Browse files Browse the repository at this point in the history
Document `entrypoints.json`

## Type of change

**NONE: internal change**
  • Loading branch information
kellymears committed Aug 14, 2023
1 parent 7b789b0 commit eb011f2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sources/@repo/docs/content/learn/config/entrypoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,23 @@ export default async bud => {

There is still more that this function can do, but for our overview this is more than enough. You can learn more about this and
other details in the [bud.entry documentation](/reference/bud.entry).

## Entrypoints manifest

When you build your application, bud.js will generate a manifest file that contains a list of all the entrypoints and their
corresponding output files. This file is located at `@dist/entrypoints.json`.

```json title=dist/entrypoints.json
{
"app": {
"js": ["app.js"],
"css": ["app.css"]
},
"landing": {
"js": ["landing.js"],
"css": ["landing.css"]
}
}
```

You can use this file to load your application scripts and styles using server-side languages like PHP or Ruby.

0 comments on commit eb011f2

Please sign in to comment.