📜  如何在 gatsbyjs 上安装 flow - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:25.830000             🧑  作者: Mango

代码示例1
yarn add gatsby-plugin-flow

Open gatsby-config.js file and Insert the following code

modules.exports = {
    plugins: [
        // your other plugins
        `gatsby-config.js`, // highlight-line
        // your other plugins
    ],
}

yarn add -D flow-bin

You can initialize Flow by running the command
npx flow init

Check your code
npx flow