log-emoji-loader

1.0.0 • Public • Published

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"]
        }]
    }
};

Production

I don't recommend using this loader when building for production unless you really want your users to see emojis in the console! 😂

Readme

Keywords

Package Sidebar

Install

npm i log-emoji-loader

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.36 kB

Total Files

4

Last publish

Collaborators

  • iampava