基于create-react-app的打包后文件路径问题

改绝对路径为相对路径。

https://segmentfault.com/q/1010000009672497

直接在package.json里加 "homepage":"." 就OK了,会在路径前加homepage的值