title: Can I use relative path with webpack dev server - react js
body: <p>When I run a development server on <code>localhost:3000</code> using <code>npm run start</code>, the server works as expected. I am using react-scripts, I have not ejected the react app.</p>
  
  <p>What I am trying to do, is set up the dev server behind a reverse proxy. So <code>localhost:5572/author/name/</code> will point to the development server running on <code>localhost:3000</code>. </p>
  
  <p>The setup is working fine, the index.html gets loaded. But as the dev server is running at <code>"/"</code>, the page tries to load scripts as <code>"&lt;script src="/static/js/bundle.js"&gt;&lt;/script&gt;"</code>. So, it expects the URL to be <code>localhost:5572/static/js/bundle.js</code>. But the reverse proxy is serving the same file at <code>localhost:5572/author/name/static/js/bundle.js</code></p>
  
  <p>Inside the package.json, I have specified </p>
  
  <pre><code>{
      ...
      "homepage": "./",
      ...
  }
  </code></pre>
  
  <p>so my production builds have a relative path, but the dev builds don't.</p>
  
  <p>Is there a way to have relative paths rather than absolute? Or is there a different solution I can use. </p>
  
  <p>Thank You.</p>