Skip to content

Commit

Permalink
fix(pages): emmptyOutDir as false
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Feb 4, 2024
1 parent 70e9845 commit e125070
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-pillows-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hono/vite-cloudflare-pages': patch
---

fix: `emmptyOutDir` as `false`
5 changes: 2 additions & 3 deletions packages/cloudflare-pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const defaultOptions = {
outputDir: './dist',
external: [],
minify: true,
emptyOutDir: true,
emptyOutDir: false,
}
```

Expand All @@ -95,7 +95,6 @@ export default defineConfig(({ mode }) => {
entryFileNames: 'client.js',
},
},
emptyOutDir: false,
copyPublicDir: false,
},
}
Expand All @@ -110,7 +109,7 @@ export default defineConfig(({ mode }) => {
The build command:

```text
vite build && vite build --mode client
vite build --mode client && vite build
```

## Authors
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare-pages/src/cloudflare-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const defaultOptions: Required<CloudflarePagesOptions> = {
outputDir: './dist',
external: [],
minify: true,
emptyOutDir: true,
emptyOutDir: false,
}

export const cloudflarePagesPlugin = (options?: CloudflarePagesOptions): Plugin => {
Expand Down

0 comments on commit e125070

Please sign in to comment.