title: Deploying react app with webpack
body: <p>I am doing a tutorial on React and I have made a youtube clone based on react. Now I wanted to upload this to my domain (hosted at one.com) but it doesn't work because bundle.js can't be found. Rather obvious since the app requires to run "npm start". </p>
  
  <p>I've been googling and found that I somehow need to deploy the app by writing a deploy configuration for webpack, but I can't get it to work.</p>
  
  <p>I've never understood this and I'd like to ask: how do I deploy a javascript/nodejs/webpack website to a server? Am I on the right track?</p>
  
  <p>My project is based on this starter: <a href="https://github.com/StephenGrider/ReduxSimpleStarter" rel="nofollow noreferrer">https://github.com/StephenGrider/ReduxSimpleStarter</a></p>
  
  <p><strong>EDIT:</strong> So I've managed to get a bundle.js file by typing the following in cmd:</p>
  
  <pre><code>webpack ./src/index.js bundle.js
  </code></pre>
  
  <p>Uploaded that to the server</p>
  
  <p>Now the problem is that it's looking for bundle and style in the root of the website.</p>