<!DOCTYPE html>
<html>
  <head>
    <meta charset='UTF-8'>
    <link rel='stylesheet' href='styles.css'>
  </head>
  <body>
    <div id='content'></div>
    <script src='../bundle.js'></script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta charset='UTF-8'>
    <link rel='stylesheet' href='styles.css'>
  </head>
  <body>
    <div id='content'></div>
    <script>
      var src = '../bundle.js'
      if (process.env.NODE_ENV === 'development') {
        src = 'http://localhost:3000/build/bundle.js'
      }

      var scriptTag = document.createElement('script')
      scriptTag.src = src
      document.head.appendChild(scriptTag)
    </script>
  </body>
</html>

Load the bundle from the dev server
Load the bundle from the dev server
