From 2eb9da240c5723856164136a3fbbfd3e548c438a Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 8 Nov 2025 14:38:35 +0800 Subject: [PATCH 1/3] docs: remove broken `build.license` example (#21073) --- config/build-options.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/config/build-options.md b/config/build-options.md index 59282616..3601d296 100644 --- a/config/build-options.md +++ b/config/build-options.md @@ -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 */', - }, - }, - }, -}) -``` - ::: ## build.manifest From 2ae87529a2c318adc611da2bad1c29098db478a6 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Sun, 9 Nov 2025 00:23:53 +0000 Subject: [PATCH 2/3] resolved conflict --- config/build-options.md | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/config/build-options.md b/config/build-options.md index 5c2963cf..db927392 100644 --- a/config/build-options.md +++ b/config/build-options.md @@ -212,28 +212,6 @@ export default defineConfig({ ] ``` -<<<<<<< HEAD -::: tip -如果你希望在构建后的代码中引用许可证文件,可以使用 `build.rollupOptions.output.banner` 在文件顶部注入注释。例如: - -```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 */', - }, - }, - }, -}) -``` - -======= ->>>>>>> 2eb9da240c5723856164136a3fbbfd3e548c438a ::: ## build.manifest {#build-manifest} From feb01613f7815f744d5f9cb1491452bc44f302a8 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Sun, 9 Nov 2025 08:30:06 +0800 Subject: [PATCH 3/3] rm useless code --- config/build-options.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/build-options.md b/config/build-options.md index db927392..ff87de44 100644 --- a/config/build-options.md +++ b/config/build-options.md @@ -212,8 +212,6 @@ export default defineConfig({ ] ``` -::: - ## build.manifest {#build-manifest} - **类型:** `boolean | string`