You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
333 B
10 lines
333 B
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons-ng';
|
|
|
|
export default (path: any) => {
|
|
return createSvgIconsPlugin({
|
|
// 指定需要缓存的图标文件夹
|
|
iconDirs: [path.resolve(path.resolve(__dirname, '../../src'), 'assets/icons/svg')],
|
|
// 指定symbolId格式
|
|
symbolId: 'icon-[dir]-[name]'
|
|
});
|
|
};
|
|
|