It provides you with flow typecheck status in webpack build reports.
Since JS and
Flow syntax vary slightly, you will need to get rid of the type annotations.
You need to follow a few simple steps.
# Install Babel and Webpack and save as devDependenciesnpm i -D babel-core babel-loader webpack# Install FBWPnpm i -D flow-babel-webpack-plugin
# setup .flowconfig./node_modules/.bin/flow init or flow init# .babelrc file
// webpack.config.js filevar FlowBabelWebpackPlugin = ;moduleexports =entry: './index'output:filename: 'build.js'module:loaders:test: /\.js$/loader: 'babel'plugins:
From now on, when you run webpack, you will recieve flow status reports alongside your webpack build log.
Something like this.
Nothing much, really. All I wanted was to display flow reports alongside webpack's - nothing fance.
I might add something more to it, if I find it really useful. Some options are:
If you have something in mind, or something you want, feel free to ask.