title: Pass Query Parameters to Loader via Webpack Require Context
body: <p>I am using webpack's <a href="https://webpack.js.org/guides/dependency-management/#requirecontext" rel="noreferrer">require.context</a> to require a directory of thumbnail images. Furthermore in my webpack config file I am implementing a <a href="https://github.com/herrstucki/responsive-loader" rel="noreferrer">responsive-loader</a> to build various resolutions of each image.</p>
  
  <p>I would like to manually pass a query parameter to the responsive-loader to build only 128 and 256 width images when I require the thumbnail directory.</p>
  
  <p>How can I pass a query parameter through webpack's <code>require.context</code> method?</p>
  
  <p>Here is my code so far...</p>
  
  <pre><code>thumbnailContext.keys().forEach(thumbnailPath =&gt; {
      thumbnailContext(`${thumbnailPath}?sizes[]=128,sizes[]=256`)
  })
  </code></pre>
  
  <p>That code returns this error.</p>
  
  <pre><code>Uncaught Error: Cannot find module './First Post/thumbnail.png?sizes[]=128,sizes[]=256'
      at webpackContextResolve (webpack:///./src/posts_sync_thumbnail\.(:8080/png%7Cjpeg%7Cjpg)?:12:11)
  </code></pre>