You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
one thing to know that the separte vite config is respect if config srcDir to cwd(meaning leaving empty with default)
the separate vite config will be respect and all the plugin is register successfully
but i prefer flat structure, wish to pull all my markdown file in content direcotry, so i was hoping this issue could be resolve
vite.config.ts should be inside srcDir for auto-discovery to work.
You can customize vite.configFile in vitepress settings if you want to keep it outside:
// .vitepress/config.tsexportdefaultdefineConfig({srcDir: 'content',// relative to rootvite: {configFile: 'vite.config.ts'// relative to cwd// you can use fileURLToPath(import.meta.resolve('../vite.config.mts'))// if you want it to be relative to file}})
Describe the bug
separate vite config file is not resolve as expected
Reproduction
// .vitepress/config.ts
running
DEBUG=vite:config,vite:resolve,vite:debug-alias vitepress dev
debug info showing vitepress config as expect
but separate vite config is not respect(i expect it to be /Users/ayao/repos/vita-ui/packages/docs`
my viteconfig as following
Expected behavior
all my plugin didn't register in merge config
~ tree -L 2 ├── content │ └── index.md ├── logs │ └── debug.log └── vite.config.ts ├── .vitepress │ └── config.ts
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: