如何在不是使用create-react-app创建的github上托管React App?

时间:2019-12-16 12:39:31

标签: reactjs github github-pages

我已经通过使用create-react-app成功地在github上部署了托管,但是我想知道如果没有create-react-app可以实现这种托管,因为create-react-app对我的应用很重。

谢谢

这是我的webpack.config.js输出代码

output: { path: path.resolve(__dirname, "build/"), publicPath: "/", //BUNDLED OUTPUT WILL BE SERVED FROM HERE filename: "bundle.js" }, 和package.json看起来像这样

"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --mode development", "start": "webpack-dev-server --mode development", "predeploy": "yarn run build", "deploy": "gh-pages -d build" }, "homepage": "https://SamalaSumanth0262.github.io/", This is my folder structure

enter image description here

0 个答案:

没有答案