我已经通过使用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/",