Orion Reed
Using Deno 2 for simple HMR/static site dev server with Vite
We have a dead simple frontend which is 100% clientside. Just a folder of html files with some .ts imports.
We are trying to unify tooling around Deno 2, but haven't been able to get this working to develop our frontend. Are there docs (specifically for Deno 2.x) for Vite setup? I'm trying really hard to keep a simple Deno setup without re-introducing node/npm stuff (just a simple deno.json config) but can't seem to get Vite working.
With npm it was sufficient to just have a
vite [folder of html files]
dev script but no luck with Deno, can't escape unresolved dependency errors from Vite. I'd love a simple solution, it would be a shame to introduce a bunch more config for such a simple use case.4 replies