In my HTML I load a Javascript module like this:
<script type="text/javascript" src="static/js/mymodule.js"></script>
But mymodule.js
contains console.log
commands inside so I can see their outputs every time when I reload the page. How can I prevent it?
Of course, I could remove all console.log
calls, but what if I deal with external library that I can't modify? Maybe there's a way to prevent logging in a particular script
-tag.