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!
- Host: GitHub
- URL: https://github.com/codyreichert/flowtype-webpack-plugin
- Owner: CodyReichert
- Created: 2018-09-17T20:42:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T19:39:47.000Z (about 6 years ago)
- Last Synced: 2024-11-03T20:36:28.313Z (over 1 year ago)
- Topics: flow, flowtype, webpack, webpack-flow, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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