larsgw/citation.js

Silence logger in webpack builds

Closed this issue · 2 comments

Thanks so much for your work on this package - it's fantastic.

I recently updated from 0.4.0-6 to 0.4.0-10. My webpack dev build now prints out several statements on every rebuild. This adds a lot of noise to my console.

screen shot 2018-12-09 at 9 40 31 am

Is there anyway to silence the logger? Or am I perhaps setting up incorrectly such that these warnings are being output? I don't see anything in the docs suggesting how I might setup differently.

Any advice or suggestions would be welcome - thanks!

Thanks so much for your work on this package - it's fantastic.

Thank you for using it and your feedback! 🙂

Is there anyway to silence the logger?

Currently only in a hack-y way by setting the env var TEST_MOCHA=true.

Or am I perhaps setting up incorrectly such that these warnings are being output?

No, they're not warnings, they're mostly useless debug logs that should be removed.

Got it - thanks for the very speedy reply! I think I'll simply wait for them to be removed (sitting at 0.4.0-6 in the meantime) as I'm concerned the env var may cause more confusion for the team than necessary.

Thanks again for the reply and the great work!