title: How to access the actual name/path/url of a static resource hashed during copy webpack plugin
body: <p>So I have resources that I hash with copy webpack plugin.</p>
  <pre><code>{
              from: &quot;data/json/*.json&quot;,
              to: &quot;data/json/[name].[hash:6].json&quot;,
  },
  </code></pre>
  <p>Now during runtime I need to get the access to the actual url of these json files.
  What I would ideally like is to be able to fetch this url during runtime so that I can do something like</p>
  <pre><code>let name = &quot;tiles&quot;;
  const tileDataUrl = requireUrl(`data/json/${name}.json`);
  fetch(tileDataUrl) // tileData Url here would  data/json/tiles.abc34f.json
  
  
  ...
  </code></pre>
  <p>What I need is a method <code>requireUrl</code> (or whatever it might be called) which returns the actual url of the static resources with hashes during runtime.</p>
  <p>( For anyone wondering, the hashes are used to do cache busting here)</p>
  <p>Please and thank you :)</p>