title: How to pass parameters and arguments to the loader?
body: <p>loader <a href="https://github.com/mortenson/emit-file-loader" rel="nofollow noreferrer">https://github.com/mortenson/emit-file-loader</a></p>
  <p>Whose code</p>
  <pre><code>const loaderUtils = require('loader-utils');
  
  module.exports = function loader(content, map, meta) {
    const options = loaderUtils.getOptions(this);
    if (options.output) {
      const name = loaderUtils.interpolateName(this, options.output, options);
      this.emitFile(name, content);
    }
    this.callback(null, content, map, meta);
  };
  </code></pre>
  <p>can be called like <code>require('emit-file-loader?{output:&quot;somefile.css&quot;}!../src/someFileExample.txt')</code></p>
  <p>So It can be used by passing options <code>output:&quot;somefile.css&quot;</code> and argument of content <code>../src/someFileExample.txt</code>
  but how can I pass arguments and options calling that loader like a function in js</p>
  <pre><code>   //something like this: require('emit-file-loader')({output:&quot;somefile.css})(&quot;somecontent&quot;)
  </code></pre>
  <p>So I just want to pass arguments and options calling that loader, how is that possible?</p>