美文网首页
React 小记 start脚本

React 小记 start脚本

作者: 寒夜丶暖 | 来源:发表于2019-01-21 12:06 被阅读0次

    React中对start脚本的定义是:

    "scripts":{

    "start":"react-scripts start",

    "build":"react-scripts build",

    "test":"react-scripts test --env=jsdom",

    "eject":"react-scripts eject"

    }

    start命令实际上是调用了react-scripts这个命令来运行项目。

    build是创建生产环境的优化代码。

    test用于单元测试。

    eject是用于把潜藏在react-scripts中的一系列技术栈配置都“弹射”到应用顶层。即让我们可见

    相关文章

      网友评论

          本文标题:React 小记 start脚本

          本文链接:https://www.haomeiwen.com/subject/pyxcjqtx.html