DEV Community

Discussion on: How to Hide your React Source Code from Chrome Dev Tools when Deployed to Production

Collapse
 
williamhenderson profile image
William Henderson

If your project is open source then it makes no difference, but for closed source projects you don't want to ship your source code as part of your production build.

Thread Thread
 
ender_minyard profile image
ender minyard

Why?

Thread Thread
 
tommyleong profile image
TommyLeong

Why would you want to publicize your code?

Especially if it's commercial site. Although there may not be any secret logics or API keys (hopefully not any), but you always try to minimize sharing what's unnecessary.