File tree Expand file tree Collapse file tree 2 files changed +48
-2
lines changed
packages/markdown-it-unlazy-img/src Expand file tree Collapse file tree 2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 1- import * as UnoCSSConfig from '../uno.config'
1+ import {
2+ defineConfig ,
3+ presetAttributify ,
4+ presetIcons ,
5+ presetUno ,
6+ presetWebFonts ,
7+ } from 'unocss'
28
3- export default UnoCSSConfig
9+ export default defineConfig ( {
10+ shortcuts : [ ] ,
11+ presets : [
12+ presetUno ( {
13+ dark : 'class' ,
14+ } ) ,
15+ presetAttributify ( ) ,
16+ presetIcons ( {
17+ prefix : 'i-' ,
18+ scale : 1.2 , // size: 1.2 rem
19+ extraProperties : {
20+ 'display' : 'inline-block' ,
21+ 'vertical-align' : 'middle' ,
22+ 'min-width' : '1.2rem' ,
23+ } ,
24+ } ) ,
25+ presetWebFonts ( {
26+ fonts : {
27+ 'chakra-petch' : [ 'Chakra Petch' ] ,
28+ 'baloo-2' : [
29+ {
30+ name : 'Baloo 2' ,
31+ } ,
32+ {
33+ name : 'Noto Sans' ,
34+ } ,
35+ {
36+ name : 'Roboto' ,
37+ } ,
38+ {
39+ name : 'sans-serif' ,
40+ provider : 'none' ,
41+ } ,
42+ ] ,
43+ 'jura' : [ 'Jura' ] ,
44+ } ,
45+ } ) ,
46+ ] ,
47+ } )
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ import { normalizePath } from 'vite'
88
99const defaultMapGlobPatterns = [
1010 '**/.vitepress/cache/@nolebase/vitepress-plugin-thumbnail-hash/thumbhashes/map.json' ,
11+ '.vitepress/cache/@nolebase/vitepress-plugin-thumbnail-hash/thumbhashes/map.json' ,
1112 '**/thumbhashes/map.json' ,
13+ 'thumbhashes/map.json' ,
1214]
1315
1416export interface ThumbHashAsset {
You can’t perform that action at this time.
0 commit comments