11 lines
285 B
TypeScript
11 lines
285 B
TypeScript
import path from 'node:path'
|
|
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
|
|
|
export const createSvgIcons = () => {
|
|
return createSvgIconsPlugin({
|
|
iconDirs: [path.resolve(process.cwd(), 'src/icon')],
|
|
symbolId: 'vab-icon-[name]',
|
|
// svgoOptions: false,
|
|
})
|
|
}
|