Ven*_*omu 6 bundle npm reactjs react-router react-native
我正在使用 create-react-app 开发 ReactJS 应用程序。
npm start 和 npm run 构建应用程序工作正常,应用程序在端口号(如 4000 或 Pushstate-server 构建在端口 9000 中运行)运行,问题是我需要在公共 url 中运行没有端口号的构建应用程序像http://sample/home/,当我直接浏览 build/index.html 时,它正确显示主页,但路由不像端口中那样工作,所有 css 和资产都显示未找到。
| 归档时间: |
|
| 查看次数: |
5165 次 |
| 最近记录: |