0.2.0 • Published 7 years ago

webpack-blocks-bows v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

webpack-blocks-bows

Generated with nod NPM version Build Status Coverage Status

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

This package uses bows-loader under the hood.

Install

$ yarn add -D webpack-blocks-bows

Or with npm:

$ npm install --save-dev webpack-blocks-bows

Usage

const { createConfig } = require('@webpack-blocks/webpack2');
const babel = require('@webpack-blocks/babel6');
const bows = require('webpack-blocks-bows');

const config = createConfig([
  babel(),
  bows(),
]);

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

Checkout the bows 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.

API

bows

Returns a webpack block that injects bows global log(...) function.

Parameters

Returns Function

Exclude

Type: (string | RegExp | Array<string> | Array<RegExp>)

Options

Type: {exclude: Exclude?}

Properties

License

MIT © Orther Mulelid-Tynes Technologies, Inc.

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago