How to drop console statements in production build?
-
Hello!
I’m trying to find a way to remove all console.log statements from my production build.
I added the build option to quasar.conf.jsbuild: {
uglifyOptions: {
compress: { drop_console: true }
},
…
}But, this does not work the “console.log” is not deleted.
-
For what it is worth, I use the exact same statement as above and it definitely works for me. Console logging is there in my dev environment and stripped out from my built/production one.
-
-
just my opinion from working, i feel it better to always not have console log, statement even in dev, i use them to only identify any problems.