chore(配置文件): 回滚更新,依旧使用弃用的属性名

This commit is contained in:
hzj 2026-03-18 14:36:49 +08:00
parent 373d08455c
commit 51e6ebfb6a

View File

@ -27,9 +27,9 @@ export default defineConfig({
entryFileNames: `js/[name]-[hash]-${Date.now()}.js`,
chunkFileNames: `js/[name]-[hash]-${Date.now()}.js`,
assetFileNames: (assetInfo) => {
const info = assetInfo.fileName.split('.')
const info = assetInfo.name.split('.')
const ext = info[info.length - 1]
if (/\.(css)$/.test(assetInfo.fileName)) {
if (/\.(css)$/.test(assetInfo.name)) {
return `css/[name]-[hash]-${Date.now()}.[ext]`
}
return `assets/[name]-[hash]-${Date.now()}.[ext]`