【问题标题】:How can I upload my source code to github when deploying a React app on github pages在 github 页面上部署 React 应用程序时如何将源代码上传到 github
【发布时间】:2021-03-31 09:43:13
【问题描述】:

我最近成功地将一个 React 应用部署到 github 页面。但是,有没有办法在 github 上同时显示源代码和构建代码?当我检查我的 repo 时,master 分支和 gh-pages 分支都显示了构建的代码,你可以在这里看到: https://github.com/daanishraj/tic-tac-toe-app/tree/master

但是,我希望访问者能够看到我定义了组件等的 .js 文件。

如何做到这一点?

仅供参考: 我的应用可以在这里找到:https://daanishraj.github.io/tic-tac-toe-app/

【问题讨论】:

    标签: reactjs github-pages


    【解决方案1】:

    只需在您的存储库中创建一个 gh-pages 分支以进行部署。

    看看我的: 源代码:https://github.com/goldEli/miao-ui。 github页面:https://goldeli.github.io/miao-ui/

    【讨论】:

      猜你喜欢
      • 2017-11-03
      • 1970-01-01
      • 2022-11-19
      • 1970-01-01
      • 2021-08-24
      • 1970-01-01
      • 2020-12-27
      • 2021-12-25
      • 2018-06-02
      相关资源
      最近更新 更多