mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
fix(theme): alias path posix in windows
This commit is contained in:
parent
618ea13715
commit
404a158791
@ -1,5 +1,5 @@
|
||||
import type { Page, Theme } from 'vuepress/core'
|
||||
import { fs } from 'vuepress/utils'
|
||||
import { fs, path } from 'vuepress/utils'
|
||||
import { isPlainObject } from '@vuepress/helper'
|
||||
import type { PlumeThemeOptions, PlumeThemePageData } from '../shared/index.js'
|
||||
import { getPlugins } from './plugins/index.js'
|
||||
@ -52,7 +52,7 @@ export function plumeTheme({
|
||||
)
|
||||
.filter(file => file.endsWith('.vue'))
|
||||
.map(file => [
|
||||
`@theme/${file}`,
|
||||
path.join('@theme', file),
|
||||
resolve('client/components', file),
|
||||
]),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user