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

https://github.com/codyreichert/flowtype-webpack-plugin

Check Flow types in your Webpack builds!
https://github.com/codyreichert/flowtype-webpack-plugin

flow flowtype webpack webpack-flow webpack-plugin

Last synced: about 1 year ago
JSON representation

Check Flow types in your Webpack builds!

Awesome Lists containing this project

README

          

# flowtype-webpack-plugin
> Check flow types in your Webpack builds!

**Requires Webpack v4**

This plugin runs `flow status` on your project's code before emitting
the compiled bundles.

## Usage

Install the package:
```
npm i -D flowtype-webpack-plugin
```

Use the plugin:
```js
const FlowtypeWebpackPlugin = require('flowtype-webpack-plugin')

{
...your webpack config
plugins: [
new FlowtypeWebpackPlugin()
]
}
```

### Plugin options

#### `warning`: _boolean_
> Throw warnings instead of errors.
```js
new FlowtypeWebpackPlugin({ warning: true })
```

#### `forceFail`: _boolean_
> Immediately kill the compilation process.
```js
new FlowtypeWebpackPlugin({ forceFail: true })
```

## License

MIT