-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): setup unocss runtime to load icon dynamically
- Loading branch information
1 parent
190503c
commit 12247e7
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// @ts-expect-error missin types | ||
import presetIcons from '@unocss/preset-icons/browser' | ||
import init from '@unocss/runtime' | ||
|
||
init({ | ||
defaults: { | ||
presets: [ | ||
presetIcons({ | ||
prefix: ['i-', ''], | ||
collections: {}, | ||
cdn: 'https://esm.sh/', | ||
scale: 1.2, | ||
extraProperties: { | ||
'display': 'inline-block', | ||
'vertical-align': 'middle', | ||
}, | ||
}), | ||
], | ||
}, | ||
bypassDefined: true, | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.