title: Webpack - How to configure to have only relative urls as output?
body: <p>When Webpack bundles, all <code>require("...")</code> calls to static files become paths like <code>path/to/myFile.extension</code>.</p>
  
  <p><strong>How can I configure so it will be replaced with relative paths like</strong> <code>../path/to/myFile.extension</code> <strong>?</strong></p>
  
  <p><strong>For instance:</strong><br>
  If I am in <code>/static/js/bundle.js</code>, then <code>require('../path/to/my/static/image.png')</code> would be replaced with <code>../media/image.png</code> rather than <code>static/media/image.png</code>.</p>