reactjs - 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",
解决方案
解决了 ;
SET GENERATE_SOURCEMAP=false
npm run build
推荐阅读
- java - 从另一个调用 REST 端点
- linux - 在 Linux 下,SD 卡上的控制器可以重新排序写入吗?
- c# - 如何检测光标何时移动然后数据将在 WPF 中更新?
- vim - 如何在 vim 语法高亮中禁用语法区域?
- appium - nativescript-dev-appium 的键盘事件
- javascript - 如何在 jQuery 中正确检测移动设备的方向?
- google-app-engine - 如何通过部署管理器部署谷歌应用引擎应用程序?有可能做到吗
- sql - 使用 Amazon Redshift 时日期字段不为空的情况
- ros - 如何在奇异配方中使用更改目录 CD 和源命令
- python - 按嵌套字典列表中的值对字典进行排序