fix: file name of build (#485)

防止文件以下划线开头
This commit is contained in:
YangFong 2024-12-21 20:21:08 +08:00 committed by GitHub
parent f10c5e665f
commit 0808b98181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]`,
},
)
},
},
})