flowtype-webpack-plugin

0.0.3 • Public • Published

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:

const FlowtypeWebpackPlugin = require('flowtype-webpack-plugin')
 
{
    ...your webpack config
    plugins: [
        new FlowtypeWebpackPlugin()
    ]
}

Plugin options

warning: boolean

Throw warnings instead of errors.

new FlowtypeWebpackPlugin({ warning: true })

forceFail: boolean

Immediately kill the compilation process.

new FlowtypeWebpackPlugin({ forceFail: true })

License

MIT

Package Sidebar

Install

npm i flowtype-webpack-plugin

Weekly Downloads

78

Version

0.0.3

License

MIT

Unpacked Size

10.3 kB

Total Files

6

Last publish

Collaborators

  • codyreichert