See if you can help. I tell you, more than 10 years ago I developed my web applications using html, php, css, js files, etc... and then I uploaded it to a server with Apache and that's it. The fact is that now I have immersed myself in the world of vue.js and some doubts have begun to arise. I have been looking for information but there are many more tutorials than anything else and they are all to the point, I have not been able to find a place where they explain it to me well.
I made an app with Vue.js + bootstrap + node.js + Visual Studio Code. To launch the server while developing I use npm run serve, this is a Node server if I'm not mistaken. So far I think there are no problems.
But to do a production build I use the npm run build command. This last process generates html, js and css files for me. I don't see any trace of anything related to Node.js or the framework I use in development . At this point I began to do tests with the files. I put them on the apache server and I couldn't get the web to open in the browser, after a while of testing and restarting I got it to work. That was what made my head explode.
- Don't I need Node.js on production server? Is it only used in development and doing the build removes the need to use it in production?
- Can you provide me with a simple example where Node.js and webpack intervene and roughly summarize the process from development to production, indicating which tools are involved in each phase?
I have searched a lot, but I swear that no website clarifies anything for me. I was happy with notepad++, xampp, php, css, html, js, mysql, clear separation between client and server, easy deployment...
Thanks in advance!