But this works fine, I use it for all my side projects:
https://vite.dev/guide/#scaffolding-your-first-vite-projectAdd in tailwind and a router of choice (I love wouter) and you've got 90% of what you need to build most applications. Vite is so much simpler than webpack and the rest that came before, it's a tiny amount of work to do this.