Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.
 
PREVIOUS NEXT
Tagged: #hide #source #react #project
ADD COMMENT
Topic
Name
1+8 =