DEV Community

Discussion on: Say Goodbye to console.log from Production environment

Collapse
 
pixeliner profile image
Pixeliner

console.logs should just be used to bug check and afterwards removed. Don't leave it in the source code, especially not in big companies. You can maybe create a peek functionality in your utils, but that's that. Using build tools to remove code is just bad practice.

Collapse
 
gulshanaggarwal profile image
Gulshan Aggarwal

True 💯 but what do you mean by build tools to remove code ?