From 770d6b7e00dafc0831e564d404cd81008c0300f3 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 25 Oct 2024 12:48:20 +0200 Subject: [PATCH] update sw config build --- packages/trace-viewer/vite.sw.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/trace-viewer/vite.sw.config.ts b/packages/trace-viewer/vite.sw.config.ts index a0dd99036a..60e90b96ac 100644 --- a/packages/trace-viewer/vite.sw.config.ts +++ b/packages/trace-viewer/vite.sw.config.ts @@ -35,9 +35,10 @@ export default defineConfig({ '@web': path.resolve(__dirname, '../web/src'), }, }, + publicDir: false, build: { + // outputs into the public dir, where the build of vite.config.ts will pick it up outDir: path.resolve(__dirname, 'public'), - // Output dir is shared with vite.config.ts, clearing it here is racy. emptyOutDir: false, rollupOptions: { input: {