make service worker serveable by trace-viewer dev server

This commit is contained in:
Simon Knott 2024-10-22 15:39:11 +02:00
parent 1950bbdc6e
commit e56018c9b2
2 changed files with 3 additions and 1 deletions

View file

@ -22,3 +22,5 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
public/sw.bundle.js*

View file

@ -36,7 +36,7 @@ export default defineConfig({
}, },
}, },
build: { build: {
outDir: path.resolve(__dirname, '../playwright-core/lib/vite/traceViewer'), outDir: path.resolve(__dirname, 'public'),
// Output dir is shared with vite.config.ts, clearing it here is racy. // Output dir is shared with vite.config.ts, clearing it here is racy.
emptyOutDir: false, emptyOutDir: false,
rollupOptions: { rollupOptions: {