mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-09 23:48:52 +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
|
||
|
})
|
||
|
}
|