Q
Q
qovalenko2019-05-04 13:45:21
Nginx
qovalenko, 2019-05-04 13:45:21

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

1 answer(s)
O
OnYourLips, 2019-05-04
@qovalenko

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 question

Ask a Question

731 491 924 answers to any question