build(projects): update deps and fix project config

This commit is contained in:
Soybean
2023-02-02 23:25:00 +08:00
parent 34ffd9c1f3
commit da521b35e6
4 changed files with 980 additions and 693 deletions

View File

@ -21,7 +21,9 @@ export default function unplugin(viteEnv: ImportMetaEnv) {
Icons({
compiler: 'vue3',
customCollections: {
[collectionName]: FileSystemIconLoader(localIconPath)
[collectionName]: FileSystemIconLoader(localIconPath, svg =>
svg.replace(/^<svg /, '<svg width="1em" height="1em" ')
)
},
scale: 1,
defaultClass: 'inline-block'