Answers for "Hide website source code in React JS"

2

react hide source code

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

scripts: {
"build": "GENERATE_SOURCEMAP=false react-scripts build"
}
Posted by: Guest on October-23-2020
-1

hide react source

In in package.json (Windows)

"scripts": {
...
    "cleanBuild": "rimraf ./build/*",
    "build": "npm run cleanBuild && set \"GENERATE_SOURCEMAP=false\" && react-scripts build ",
Posted by: Guest on July-30-2020

Code answers related to "Hide website source code in React JS"

Code answers related to "Javascript"

Browse Popular Code Answers by Language