首页 > 解决方案 > How do I hide the codes that appear in the sourcemap in the react application?

问题描述

All codes are clearly visible in the "sources" section of the internet browser in an application made with react. Is there a method of concealing this?

I searched "Source map disable" and found a few results, but it didn't work.

Screenshot ;

http://serdarkaraca.com/react_serdarkaraca.png

package.json

"build": "rimraf ./build && react-scripts build && rimraf ./build/**/*.map",

标签: reactjs

解决方案


解决了 ;

SET GENERATE_SOURCEMAP=false
npm run build

推荐阅读