Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions docs/config/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,25 +212,6 @@ If `fileName` is passed, it will be used as the license file name relative to th
]
```

::: tip
If you'd like to reference the license file in the built code, you can use `build.rollupOptions.output.banner` to inject a comment at the top of the files. For example:

```js twoslash [vite.config.js]
import { defineConfig } from 'vite'

export default defineConfig({
build: {
license: true,
rollupOptions: {
output: {
banner:
'/* See licenses of bundled dependencies at https://example.com/license.md */',
},
},
},
})
```

:::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


## build.manifest
Expand Down