import { readFileSync, readdirSync } from 'fs'
let idPerfix = ''
const svgTitle = /', '')
svgRes.push(svg)
}
}
return svgRes
}
export const svgLoader = (path: string, perfix = 'icon') => {
if (path === '') return
idPerfix = perfix
console.log('svgLoader');
const res = findSvgFile(path)
return {
name: 'svg-transform',
transformIndexHtml(html: any) {
return html.replace(
'
',
`
`
)
}
}
}