blog icon indicating copy to clipboard operation
blog copied to clipboard

基于create-react-app的打包后文件路径问题(导致部署到gh-pages后访问不了)

Open ly2011 opened this issue 7 years ago • 0 comments

解决方案

直接在 package.json 里加 "homepage": "." ( since [email protected]) 或者 "homepage": "http://myuser.github.io/myproject"

参考文档

  1. 基于create-react-app的打包后文件路径问题
  2. create-react-app CSS and JS path

ly2011 avatar Jan 05 '19 15:01 ly2011