1.0.2 • Published 8 years ago

bows-loader v1.0.2

Weekly downloads
14
License
MIT
Repository
github
Last release
8 years ago

bows-loader

npm version

A webpack loader that injects bows (a console.log replacement) into source files.

Install

npm install bows-loader --save

Usage

Add bows-loader to your source loader chain.

...
module: {
  loaders: [
    {
      test: /\.(js|jsx)$/,
      exclude: /node_modules/,
      loaders: ["bows-loader", "babel"],
    },
  ],
},
...

Then, you can use the global log in place of console.log.

Bows is safe to use in production, see their documentation for more details.

.eslintrc changes

Since you'll be using a new global in your source, eslint should complain about this. Either add log as a global, or use eslint-config-bows-loader.

LICENSE

MIT