Skip to content

Commit e1c43e0

Browse files
authored
docs: remove broken build.license example (#21073)
1 parent e56c9e6 commit e1c43e0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

docs/config/build-options.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -212,25 +212,6 @@ If `fileName` is passed, it will be used as the license file name relative to th
212212
]
213213
```
214214

215-
::: tip
216-
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:
217-
218-
```js twoslash [vite.config.js]
219-
import { defineConfig } from 'vite'
220-
221-
export default defineConfig({
222-
build: {
223-
license: true,
224-
rollupOptions: {
225-
output: {
226-
banner:
227-
'/* See licenses of bundled dependencies at https://example.com/license.md */',
228-
},
229-
},
230-
},
231-
})
232-
```
233-
234215
:::
235216

236217
## build.manifest

0 commit comments

Comments
 (0)