Skip to content

Commit

Permalink
🐛 fix deploy admin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ileostar committed Jan 21, 2024
1 parent 18775f5 commit 2a2f0c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.9.0
v20.11.0
4 changes: 2 additions & 2 deletions apps/admin/build/plugins/unplugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export default function unplugin(viteEnv: ImportMetaEnv) {
const localIconPath = `${srcPath}/assets/svg-icon`;

/** 本地svg图标集合名称 */
const collectionName = VITE_ICON_LOCAL_PREFIX.replace(`${VITE_ICON_PREFIX}-`, '');
const collectionName = VITE_ICON_LOCAL_PREFIX?.replace(`${VITE_ICON_PREFIX}-`, '');

return [
Icons({
compiler: 'vue3',
customCollections: {
[collectionName]: FileSystemIconLoader(localIconPath, svg =>
svg.replace(/^<svg\s/, '<svg width="1em" height="1em" ')
svg?.replace(/^<svg\s/, '<svg width="1em" height="1em" ')
)
},
scale: 1,
Expand Down

0 comments on commit 2a2f0c8

Please sign in to comment.