import { readFileSync, readdirSync } from 'fs'
let idPerfix = ''
const svgTitle = /', '')
arr.push(svg)
}
}
return arr
}
export const svgBuilder = (path: any, perfix = 'icon') => {
if (path === '') return
idPerfix = perfix
const res = svgFind(path)
console.log(res)
return {
name: 'svg-transform',
transformIndexHtml (dom: String) {
return dom.replace(
'
',
``
)
}
}
}