Hello Devs, In this blog post I am going to tell you something about hiding ReactJS code in production server. 1.Introduction I am assuming that you have developed a ReactJS application using create-react-app (CLI tool for setting up a boilerplate se...

Markdown supported · ⌘↵ to post
Hi CapsCode, great article by the way.
Please I want to ask if there are any consequences for not hiding React code from browser and the major reason behind hiding it.
Thanks
Thanks, I use it for script build simple in react project. It worked https://monday-crm-clone.herokuapp.com/
"build": "GENERATE_SOURCEMAP=false react-scripts build"
That's an interesting way of hiding your code. As I understand it, source maps are supposed to be used for aiding debugging during development anyways.
Another way may be to use a JavaScript obfuscator. So not even you can read your own code 😝 (check obfuscator.io)
HelloWorld
js
Thanks, How to hide sourcemap in nextjs project? it maybe another article