Merge pull request 'test : 测试ci/cd-2' (#1046) from master into prod
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/1046
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 模块
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user