
1 immjun 2016-10-20 12:30:41 +08:00 打包好的项目文件需要通过 http 服务器别人才能访问到呢,你可以启动个 nginx 然后把文件放 html 目录下。 |
2 wjdimba OP 已经发现问题所在了 Browserhistory 的锅 |
3 yhxx 2016-10-20 12:55:25 +08:00 webpack-dev-server 跑的是你内存里的代码 并不是真正 build 文件夹中的 |
4 portals 2016-10-20 14:25:24 +08:00 location / { root <dir>; try_files $uri /index.html =404; } |
5 luoyjx 2016-12-12 23:04:30 +8:00 `Browserhistory ` 的话你需要 nginx 或者是 http server 直接访问中国 index.html |