From 7453f683d8325ce550750e8c507506cb3694a18a Mon Sep 17 00:00:00 2001 From: rommguy Date: Sat, 2 Mar 2024 12:36:22 +0200 Subject: [PATCH] try and fix example --- exampleDist/vite.svg | 1 - vite.config.ts | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) delete mode 100644 exampleDist/vite.svg diff --git a/exampleDist/vite.svg b/exampleDist/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/exampleDist/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 0011969..9bb1bcb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,7 +7,11 @@ export default defineConfig(({ mode }) => { const isProdBuild = mode !== "example"; if (!isProdBuild) { - return { plugins: [react()], build: { outDir: "exampleDist" } }; + return { + plugins: [react()], + build: { outDir: "exampleDist" }, + publicDir: "exampleDist", + }; } return {