Are you the team working on the Vite
Are you the team working on the Vite plugin? I've been enjoying that for local dev and may have found an edge case when running Astro with other Vite plugins.
4 Replies
We are. It doesn't support Astro at present though. We are in touch with the Astro team but we're still a way off getting things to a place where it works well with the Cloudflare plugin.
Ah. Okay. Well, it is working well for some cases.
I am doing SSG only (no SSR for Astro) with a hono Worker accessed via a Vue island. Everything is fine until I add Tailwind via another Vite plugin. Then I get CSS files in dist/_astro/ as well as the JS in dist/client/_astro/ and then it doesn't deploy properly (it seems to treat dist/client as static resources to be deployed as a sub dir since it found things in the dist/ folder to deploy).
Is this something I should open a github issue over or just wait for deeper Astro support? (I have a work around where I just move all the dist/client/ files to dist/ before deploy. Not ideal, but gets the job done in the meantime.)
Are you using the
@tailwindcss/vite
plugin? Before adding it is the output just in dist/client/_astro
?
Versus with the tailwind bits uncommented:
Can push a minimal repro repo if you'd like.