Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I hide react code from browser console?

Does anyone know how to hide the code displayed in the browser console?

I use in package.json GENERATE_SOURCEMAP=false and set \"GENERATE_SOURCEMAP=false\" && react-scripts build and run npm run build and delete the .js.map files but it doesn't work...

like image 779
JRG67 Avatar asked Aug 30 '26 14:08

JRG67


1 Answers

in package.json file as follows. add GENERATE_SOURCEMAP=false to build

like image 152
AAG Avatar answered Sep 02 '26 05:09

AAG



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!