I use lots of console.log()
statements while developing Apps (and I mean LOTS). How exactly can I remove them without "ejecting"
from a
Create React App
What I considered but not sure how exactly to implement:
In my package.json:
"build": "react-scripts build && uglifyjs --compress drop_console build/static/js/main.xxxxx.js -o build/static/js/main.xxxxx.js
However How exactly can I know the hash
suffix on the main.js
file so I can call this command and save the output js file with same filename