I've got some questions that I really hope someone here might be able to help me with.
I'm trying to create a streamlined workflow for building a full-stack node app. I'd like to bundle my front-end assets with webpack, and then have Express serve those assets with a template engine (Pug or EJS). It would be great to also put those statics assets in a folder that can then be served by Nginx. My issue is that I often see index.html files in the frontend folder being bundled by webpack along with the static files. I'm assuming this is because it's for static sites, rather than web applications...but I might be wrong.
So my questions are these:
What is the right way to structure a fullstack app without a front-end framework, with webpack, where you use a template engine to render your html?
Should my views folder be inside my server folder? Or should it be inside the frontend folder?
Am I completely missing the point?
I've being doing web dev for quite a long time but I've never got my head round this, so I'd really appreciate any help.