title: react build with gh-pages generates wrong file path to static files
body: <p>Hello fellow programmers!</p>
  
  <p>I'm trying to deploy an application with help of the npm library gh-pages. The issue i'm encountering is that the index.html in my build folder is wrongly adding my repository name to the static file path.</p>
  
  <p>According to the documentation my homepage field in my package.json should look like this</p>
  
  <pre><code>"homepage": "https://username.github.io/repoName/",
  </code></pre>
  
  <p>However when i enter the website url i get 404 error code because it's looking for my static files in</p>
  
  <pre><code>"/repoName/static/js/main.34abd32a.chunk.js"
  </code></pre>
  
  <p>Which is confusing to me since i need to keep my homepage field as it is in order to be able to push it to the gh-pages branch.</p>
  
  <p>Any ideas?</p>