Use flow with the Preact CLI
Install it via npm:
npm install preact-cli-plugin-flow --save-dev
This will install:
After install this plugin will run 3 commands:
After this just include it in your project by creating a preact.config.js
const preactCliFlow = require('preact-cli-plugin-flow');
export default function (config) {
preactCliFlow(config);
}
Now you can use flow all you want 🎉
MIT