Skip to content

Commit b989f32

Browse files
authored
fix(unlazy-img): extra pattern for glob to search (#430)
1 parent 6a51aaf commit b989f32

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

docs/uno.config.ts

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
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+
})

packages/markdown-it-unlazy-img/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { normalizePath } from 'vite'
88

99
const 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

1416
export interface ThumbHashAsset {

0 commit comments

Comments
 (0)