I have installed
npm i babel-plugin-transform-remove-console --save
Also added below code in .babelrc
:
{
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}
But in production mode, its not removing console.log
.
Also in some sample project .babelrc
file is not getting generated after doing npm installation.Am I missing anything?
Reference link