Skip to content

Commit 73c2736

Browse files
authored
docs: remove broken build.license example (#2242)
* docs: remove broken `build.license` example * docs: remove useless code
1 parent b0bb59b commit 73c2736

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

config/build-options.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -212,27 +212,6 @@ export default defineConfig({
212212
]
213213
```
214214

215-
::: tip
216-
ビルドされたコード内でライセンスファイルを参照したい場合は、`build.rollupOptions.output.banner` を使用してファイルの先頭にコメントを挿入できます。たとえば:
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-
234-
:::
235-
236215
## build.manifest
237216

238217
- **型:** `boolean | string`

0 commit comments

Comments
 (0)