Answers for "hide source code of react website"

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
2

how to hide source for react project

"build": "GENERATE_SOURCEMAP=false react-scripts build",
"winBuild": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build",

Use npm run build for creating build on Linux.

Use npm run winBuild for creating build on Windows.
Posted by: Guest on April-11-2021

Code answers related to "hide source code of react website"

Code answers related to "Javascript"

Browse Popular Code Answers by Language