Skip to content

Commit

Permalink
fix(unlazy-img): extra pattern for glob to search (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww authored Feb 23, 2025
1 parent 6a51aaf commit b989f32
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
48 changes: 46 additions & 2 deletions docs/uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
import * as UnoCSSConfig from '../uno.config'
import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
} from 'unocss'

export default UnoCSSConfig
export default defineConfig({
shortcuts: [],
presets: [
presetUno({
dark: 'class',
}),
presetAttributify(),
presetIcons({
prefix: 'i-',
scale: 1.2, // size: 1.2 rem
extraProperties: {
'display': 'inline-block',
'vertical-align': 'middle',
'min-width': '1.2rem',
},
}),
presetWebFonts({
fonts: {
'chakra-petch': ['Chakra Petch'],
'baloo-2': [
{
name: 'Baloo 2',
},
{
name: 'Noto Sans',
},
{
name: 'Roboto',
},
{
name: 'sans-serif',
provider: 'none',
},
],
'jura': ['Jura'],
},
}),
],
})
2 changes: 2 additions & 0 deletions packages/markdown-it-unlazy-img/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { normalizePath } from 'vite'

const defaultMapGlobPatterns = [
'**/.vitepress/cache/@nolebase/vitepress-plugin-thumbnail-hash/thumbhashes/map.json',
'.vitepress/cache/@nolebase/vitepress-plugin-thumbnail-hash/thumbhashes/map.json',
'**/thumbhashes/map.json',
'thumbhashes/map.json',
]

export interface ThumbHashAsset {
Expand Down

0 comments on commit b989f32

Please sign in to comment.