Skip to content

Commit

Permalink
fix: don't copy public folder in service worker build (#10082)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Jun 1, 2023
1 parent 1b89ee3 commit d4de204
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tame-kangaroos-film.md
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: don't copy public folder in service worker build
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -18,3 +18,4 @@ vite.config.js.timestamp-*
.vercel
.test-tmp
symlink-from
.idea/
3 changes: 2 additions & 1 deletion packages/kit/src/exports/vite/build/build_service_worker.js
Expand Up @@ -79,8 +79,9 @@ export async function build_service_worker(
outDir: `${out}/client`,
emptyOutDir: false
},
define: vite_config.define,
configFile: false,
define: vite_config.define,
publicDir: false,
resolve: {
alias: [...get_config_aliases(kit), { find: '$service-worker', replacement: service_worker }]
}
Expand Down

0 comments on commit d4de204

Please sign in to comment.