Hi, I'm making a virtual world in Node.js in plain JavaScript with the Phaser framework.
I've got an Express server which not only serves as the backend for the website and the game, but is also serving a public folder, which includes all of the assets for the website, including website assets, stylesheets, page scripts and the whole client game code.
I am using the EJS template engine to render HTML on the server side, so these .ejs files are obviously on the server side.
My question is: how can I bundle with Vite all of my static assets, which are inside public, including the game's code, without having an index.html file?
I also have other questions, like the concept of the "development server", which Vite uses to "serve" the static files. I kind of understand it, but as I've got my express server, which serves the assets in the public folder, and also handles the backend of the website and the game and renders HTML, for the last year I've been having a REALLY hard time understanding how I'm supposed to bundle my project.
I'm really confused and can't find anyone else in the same situation. Please, if you know what to do in this situation, reach out to me.
Thank you in advance.