Check flow types in your Webpack builds!
View the Project on GitHub CodyReichert/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.
Install the package:
npm i -D flowtype-webpack-plugin
Use the plugin:
const FlowtypeWebpackPlugin = require('flowtype-webpack-plugin')
{
...your webpack config
plugins: [
new FlowtypeWebpackPlugin()
]
}
warning
: booleanThrow warnings instead of errors.
new FlowtypeWebpackPlugin({ warning: true })
forceFail
: booleanImmediately kill the compilation process.
new FlowtypeWebpackPlugin({ forceFail: true })
MIT