node.js - React npm run build, what is that, why we need that? -


currently made simple app react, works , use react-scripts. installed react following facebook github page, , written "when you're ready deploy production, running npm run build create optimized build of app in build folder. ". after press npm run build, folder build created, not know folder. tried method like, move folders except build , npm run, did not work. can explain me folder "build" ? thank you

npm run build builds app production build folder. correctly bundles react in production mode , optimizes build best performance.

the build minified , filenames include hashes.

npm run build creates build directory production build of app. set favourite http server visitor site served index.html, , requests static paths /static/js/main..js served contents of /static/js/main..js file.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -