Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Aug 24, 2024
1 parent 14e163f commit b512aa4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/slidev/node/setups/unocss.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { resolve } from 'node:path'
import { existsSync, readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import type { Theme } from '@unocss/preset-uno'
import type { UserConfig } from '@unocss/core'
import { mergeConfigs, presetIcons } from 'unocss'
Expand Down Expand Up @@ -30,7 +29,7 @@ export default async function setupUnocss(
collectionsNodeResolvePath: utils.iconsResolvePath,
collections: {
slidev: {
logo: () => readFileSync(fileURLToPath(new URL('assets/logo.svg', import.meta.url)), 'utf-8'),
logo: () => readFileSync(resolve(clientRoot, 'assets/logo.svg'), 'utf-8'),
},
},
}),
Expand Down

0 comments on commit b512aa4

Please sign in to comment.