Answer the question
In order to leave comments, you need to log in
Is it worth implementing such an approach and if so, how to compile?
Tell me how they implement the final product in production on React or Vue leave the frontend server on the node or can everything be compiled and transferred to nginx?
Tell me, is it possible to compile React or VUE with routes and other additions into one js file, which can be connected as ordinary statics in the same nginx for example?
I just think if you run npm start and copy build.js which will return to index.html and run it in the same nginx with routes redirected to index.html - then what I plan will not work?
Thank you!
Answer the question
In order to leave comments, you need to log in
Usually everything compiles to js and css.
nodejs is not needed for a site without a prerender in production.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question