title: Publish React page on github
body: <p>I have made a simple page with React &amp; Redux, which I want to deploy on github.</p>
  
  <p>In my terminal, I write:</p>
  
  <pre><code>npm run build
  </code></pre>
  
  <p>Then I add</p>
  
  <pre><code>"homepage": "http://myusername.github.io/mynameapp",
  
  "predeploy": "npm run build",
  
  "deploy": "gh-pages -d build"
  </code></pre>
  
  <p>to package.json</p>
  
  <p>Then I install</p>
  
  <pre><code>npm install --save-dev gh-pages
  </code></pre>
  
  <p>Then I go on my </p>
  
  <pre><code>Github repository =&gt; settings =&gt; GitHub Pages =&gt; select gh pages branch.
  </code></pre>
  
  <p>Finally, I write </p>
  
  <pre><code>npm run deploy
  </code></pre>
  
  <p>The page is published, but the result is pure crap. It blends old lines of code - that I actually erased ages ago - with new ones. 100% of the images are either not displayed or not even found. I've checked the build folder, everything is fine. I did add, commit and push my project to the repo before doing the build.</p>
  
  <p>Any help would be highly appreciated!</p>