An open API service indexing awesome lists of open source software.

https://github.com/aduth/debugger-loader

Debugger loader for Webpack
https://github.com/aduth/debugger-loader

Last synced: about 1 year ago
JSON representation

Debugger loader for Webpack

Awesome Lists containing this project

README

          

# Debugger loader for Webpack

Load [`debug`](https://www.npmjs.com/package/debug) via Webpack loader.

Nice to use for single-line debug imports with ES6 syntax.

## Installation

`npm install debugger-loader`

## Usage

```js
import debug from 'debugger?myapp!';

debug( 'Success!' );

// Equivalent to:

var debug = require( 'debug' )( 'myapp' );

debug( 'Success!' );
```

[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)

## License

MIT (http://www.opensource.org/licenses/mit-license.php)