diff --git a/desktop-next/vite.config.ts b/desktop-next/vite.config.ts index 683f184a18..2452a8f780 100644 --- a/desktop-next/vite.config.ts +++ b/desktop-next/vite.config.ts @@ -18,6 +18,7 @@ export default defineConfig({ react(), { name: "license-notices", + apply: "build", closeBundle() { copyFileSync( "../packages/ui/THIRD_PARTY_NOTICES.md", diff --git a/packages/ui/vite.config.ts b/packages/ui/vite.config.ts index 26e500d7e0..0c7883df73 100644 --- a/packages/ui/vite.config.ts +++ b/packages/ui/vite.config.ts @@ -4,6 +4,7 @@ export default defineConfig({ plugins: [ { name: "license-notices", + apply: "build", closeBundle() { copyFileSync("THIRD_PARTY_NOTICES.md", "dist/THIRD_PARTY_NOTICES.md"); copyFileSync("../../LICENSE", "dist/LICENSE");