Skip to content

Commit

Permalink
fix: don't copy public folder when building custom sw (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed May 30, 2023
1 parent 8ad7050 commit f7c4c94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ export async function generateInjectManifest(options: ResolvedVitePWAOptions, vi
await build({
root: viteOptions.root,
base: viteOptions.base,
// don't copy anything from public folder
publicDir: false,
build: {
sourcemap: viteOptions.build.sourcemap,
lib: {
Expand Down

0 comments on commit f7c4c94

Please sign in to comment.