test : 测试ci/cd-2

This commit is contained in:
dj
2025-06-13 17:59:33 +08:00
parent fa3171fecd
commit cd2bfe8817
2 changed files with 11 additions and 8 deletions

View File

@@ -48,6 +48,6 @@
"unplugin-auto-import": "^0.15.3",
"unplugin-vue-components": "^0.24.1",
"vite": "^4.3.4",
"vite-plugin-svg-icons": "^0.4.0"
"vite-plugin-svg-icons": "^2.0.1"
}
}

View File

@@ -9,7 +9,7 @@ import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import Inspect from 'vite-plugin-inspect'
import viteSvgIcons from 'vite-plugin-svg-icons'
import path from 'path'
import path from 'node:path'
// https://vitejs.dev/config/
export default defineConfig({
@@ -41,12 +41,12 @@ export default defineConfig({
Icons({
autoInstall: true,
}),
viteSvgIcons({
// 指定需要缓存的图标文件夹
iconDirs: [path.resolve(__dirname, 'src/assets/svg')],
// 指定symbolId格式
symbolId: 'icon-[dir]-[name]',
}),
// viteSvgIcons({
// // 指定需要缓存的图标文件夹
// iconDirs: [path.resolve(process.cwd(), 'src/assets/svg')],
// // 指定symbolId格式
// symbolId: 'icon-[dir]-[name]',
// }),
Inspect(),
],
resolve: {
@@ -106,4 +106,7 @@ export default defineConfig({
// }
}
},
esbuild: {
target: 'esnext', // 强制使用最新 ES 模块
},
})