how to hide some content in react js code code example
Example 1: react hide source code
in package.json file as follows.
add GENERATE_SOURCEMAP=false to build
scripts: {
"build": "GENERATE_SOURCEMAP=false react-scripts build"
}
Example 2: hide react source
In in package.json (Windows)
"scripts": {
...
"cleanBuild": "rimraf ./build/*",
"build": "npm run cleanBuild && set \"GENERATE_SOURCEMAP=false\" && react-scripts build ",