Vite base setting not used when running site built with Vike+Hattip
#2241
Unanswered
pdanpdan
asked this question in
Discussion
Replies: 1 comment 1 reply
|
Hi Dan, yea I also ain't sure where the issue originates. But it does seem to be a UnoCSS issue. Can you reproduce without Vike? Without HatTip? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello.
I'm not sure where this should go (what repo), because it is a mix of Vite, Vike and Hattip.
pnpm create vike@latest --vue --hattipvite.config.tsand addbase: 'test'in configpnpm dev- all is well (Local: http://localhost:3000/test)pnpm buildNODE_ENV=production node dist/server/index.mjs- it is served asServer listening on http://localhost:3000When accessing
http://localhost:3000/testthe html loads as expected, but no asset can be loaded.Somehow related, when adding UnoCSS to a Vike project the inspector has some problems with matching the
base:The inspector interface is in fact available on
https://localhost:3000/__unocss/.@brillout I suppose this should go on UnoCSS and if you can confirm it's not related to Vike I'll create an issue there.
All reactions