Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iampava/log-emoji-loader
Webpack loader that prepends "😊" or "😡" in all the console.log/console.error instructions.
https://github.com/iampava/log-emoji-loader
emoji loader webpack-loader
Last synced: about 1 month ago
JSON representation
Webpack loader that prepends "😊" or "😡" in all the console.log/console.error instructions.
- Host: GitHub
- URL: https://github.com/iampava/log-emoji-loader
- Owner: iampava
- License: mit
- Created: 2018-07-22T20:36:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-22T20:56:49.000Z (over 6 years ago)
- Last Synced: 2024-11-18T02:43:03.094Z (about 1 month ago)
- Topics: emoji, loader, webpack-loader
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/log-emoji-loader
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# log-emoji Loader
Webpack loader that prepends "😊" or "😡" in all the console.log/console.error instructions.### Example
```js
console.log("Hi!");console.error("Wut is going on?");
```
changes into
```js
console.log("😊", "Hi!");console.error("😡", "Wut is going on?");
```Works with **double-quotes**, **single-quotes** and **back-ticks**!
### Install
```bash
npm install log-emoji-loader --save-dev
```### Usage
To use this loader just add it to **webpack**'s config and voila!
```js
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! 😂