@@@@@@
This commit is contained in:
10
library/build/svgSprite/index.ts
Normal file
10
library/build/svgSprite/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user