Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/geyang/react-docgen-loader

a small webpack loader that generates react component metaData using react-docgen
https://github.com/geyang/react-docgen-loader

Last synced: about 2 months ago
JSON representation

a small webpack loader that generates react component metaData using react-docgen

Awesome Lists containing this project

README

        

# react-docgen loader for webpack

This is a simplified version of the `docgen-loader`, thanks to @eisisig.

## Usage
```shell
npm install react-docgen-loader --save-dev
```

``` javascript
var docs = require("!!react-docgen-loader!./HappySandwichMaker.js");
// => returns HappySandwichMaker.js documentation object if HappySandwichMaker definition is found
```

**NOTE**: use double !! to disable loaders specified in the `webpack.config.js` file.

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