Skip to content

Commit

Permalink
fix: remove public dir during build
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveYuOWO committed Oct 25, 2023
1 parent 21f7aef commit 1e4dd79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@steveyuowo/vue-hot-toast",
"version": "1.0.7",
"version": "1.0.9",
"type": "module",
"files": [
"dist",
Expand Down
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import vue from '@vitejs/plugin-vue'
import dts from 'vite-plugin-dts';

// https://vitejs.dev/config/
export default defineConfig({
export default defineConfig(({ command }) => (({
publicDir: command === 'build' ? false : 'public',
plugins: [
vue(),
dts({
Expand All @@ -26,4 +27,4 @@ export default defineConfig({
}
}
},
})
})))

0 comments on commit 1e4dd79

Please sign in to comment.