update sw config build

This commit is contained in:
Simon Knott 2024-10-25 12:48:20 +02:00
parent f9874294c1
commit 770d6b7e00
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -35,9 +35,10 @@ export default defineConfig({
'@web': path.resolve(__dirname, '../web/src'), '@web': path.resolve(__dirname, '../web/src'),
}, },
}, },
publicDir: false,
build: { build: {
// outputs into the public dir, where the build of vite.config.ts will pick it up
outDir: path.resolve(__dirname, 'public'), outDir: path.resolve(__dirname, 'public'),
// Output dir is shared with vite.config.ts, clearing it here is racy.
emptyOutDir: false, emptyOutDir: false,
rollupOptions: { rollupOptions: {
input: { input: {