After using npm run build
cmd with the following script in package.json file in my React App,
"scripts": {
"start": "react-scripts start",
"build": "set 'GENERATE_SOURCEMAP=false' && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
FYI: I am using windows machine.
The js code is not hiding from the browser stil I can see from the browser sources tab. I am using spring application as backend.
Can anyone tell me how can I do hide js file or minify it after prod build.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/8u6HOro
Comments
Post a Comment