babel-plugin-captains-log
babel-plugin-captains-log copied to clipboard
Allow css styling in template literals
For some reason, this code doesn't work:
console.log(`%c ${123}`, 'color:red');
(it logs %c 123 color:red)
But if I turn-off the plugin, it works as expected.
I was not aware of the string substitutions within console functions. This is pretty sweet. Are you open to attempting to put in a fix for this?
I'll try to take a look this week.