We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
build.license
1 parent e154ef7 commit 1bac92fCopy full SHA for 1bac92f
config/build-options.md
@@ -223,6 +223,30 @@ export default defineConfig({
223
]
224
```
225
226
+::: tip
227
+
228
+ビルドされたコード内でライセンスファイルを参照したい場合は、`build.rolldownOptions.output.postBanner` を使用してファイルの先頭にコメントを挿入できます。例:
229
230
+<!-- TODO: add a link for output.postBanner above to Rolldown's documentation -->
231
232
+```js twoslash [vite.config.js]
233
+import { defineConfig } from 'vite'
234
235
+export default defineConfig({
236
+ build: {
237
+ license: true,
238
+ rollupOptions: {
239
+ output: {
240
+ postBanner:
241
+ '/* バンドルされた依存関係のライセンスは https://example.com/license.md を参照 */',
242
+ },
243
244
245
+})
246
+```
247
248
+:::
249
250
## build.manifest
251
252
- **型:** `boolean | string`
0 commit comments