npm run buildで作られたbuildが/static/foo.jsみたいな参照をしているのでブラウザで/build/index.htmlを開いてもそこからのJSのロードで失敗する
これはこういうこと
:
The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:
"homepage" : "http://myname.github.io/myapp",