mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 21:47:55 +08:00
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
|
import svgIcon from 'vite-plugin-svg-icons'
|
||
|
import path from 'path'
|
||
|
|
||
|
export default function createSvgIcon(isBuild) {
|
||
|
return svgIcon({
|
||
|
iconDirs: [path.resolve(process.cwd(), 'src/assets/icons/')],
|
||
|
symbolId: 'icon-[dir]-[name]',
|
||
|
svgoOptions: isBuild
|
||
|
})
|
||
|
}
|