Skip to content

Commit

Permalink
fix: file name of build (#485)
Browse files Browse the repository at this point in the history
防止文件以下划线开头
  • Loading branch information
YangFong authored Dec 21, 2024
1 parent f10c5e6 commit 0808b98
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,13 @@ export default defineConfig({
css: {
devSourcemap: true,
},
},
)
build: {
rollupOptions: {
output: {
chunkFileNames: `static/js/md-[name]-[hash].js`,
entryFileNames: `static/js/md-[name]-[hash].js`,
assetFileNames: `static/[ext]/md-[name]-[hash].[ext]`,
},
},
},
})

0 comments on commit 0808b98

Please sign in to comment.