Skip to content
Merged

d2m #1492

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
24 changes: 24 additions & 0 deletions config/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,30 @@ export default defineConfig({
]
```

::: tip

如果你想在构建后的代码中引用许可文件,可以使用 `build.rolldownOptions.output.postBanner` 在文件顶部注入注释。例如:

<!-- TODO: add a link for output.postBanner above to Rolldown's documentation -->

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

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

:::

## build.manifest {#build-manifest}

- **类型:** `boolean | string`
Expand Down