flow-webpack-plugin
flow-webpack-plugin copied to clipboard
A webpack plugin allowing to call Flow type checker.
at the moment I receive a warning on Webpack4 ``` DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead ```
With a configuration like ``` new FlowWebpackPlugin({ failOnError: true }) ``` and running `webpack -w` the webpack process is termintated when Flow errors exist with: ``` Flow validation failed. Error:...
This should fix issue #7. The information if webpack is running in watch mode is kept and used to check in `afterUserCallback`.
If you set `flowPath` to a globally installed `flow` without any local `flow`, this plugin still throws an error like: ``` Error: `flow` can't be found. Please either install it...
Flow's new progress messages are included in the error printing: 
It would be great if there is a boolean option, when we set it, it runs the flow after webpack compilation. In this case, we have the options to run...