update 升级 vite8
update 升级 ts6 update eslint 替换为 Oxlint
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons-ng';
|
||||
import { resolve } from 'path';
|
||||
|
||||
export default (path: any) => {
|
||||
export default () => {
|
||||
return createSvgIconsPlugin({
|
||||
// 指定需要缓存的图标文件夹
|
||||
iconDirs: [path.resolve(path.resolve(__dirname, '../../src'), 'assets/icons/svg')],
|
||||
iconDirs: [resolve(import.meta.dirname, '../../src/assets/icons/svg')],
|
||||
// 指定symbolId格式
|
||||
symbolId: 'icon-[dir]-[name]'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user