I want to have console logging while I'm developing in Vue.js but want it disabled for production.
There is a module vuejs-logger
that works fine inside of a Vue component and will be disabled in production mode. But it will not work (for instance) in my service files or library files (outside of the Vue instance) nor in Vuex.
Does anyone have any other suggestions? Vue.js integrated or otherwise?
Stay safe, TIA
Edit: Just to clarify, vuejs-logger
's Typescript integration is the real problem. It throws up so many TS errors that I cannot use it. The actual JS logging seems to work... I'm still interested in other solutions that may work smoothly.