log-emoji-loader
v1.0.0
Published
Webpack loader that prepends "๐" or "๐ก" in all the console.log/console.error instructions.
Downloads
6
Readme
log-emoji Loader
Webpack loader that prepends "๐" or "๐ก" in all the console.log/console.error instructions.
Example
console.log("Hi!");
console.error("Wut is going on?");
changes into
console.log("๐", "Hi!");
console.error("๐ก", "Wut is going on?");
Works with double-quotes, single-quotes and back-ticks!
Install
npm install log-emoji-loader --save-dev
Usage
To use this loader just add it to webpack's config and voila!
module.exports = {
module: {
rules: [{
test: /\.js$/,
use: ["log-emoji-loader", "babel-loader"]
}]
}
};