title: string replace loader not working with webpack 3
body: <p>I am using <code>webpack 3</code> &amp; trying to use <a href="https://www.npmjs.com/package/string-replace-loader" rel="noreferrer">string replace loader</a>. </p>
  
  <p>This code use to work in webpack1.X</p>
  
  <pre><code>module: {
      loaders: [
        {
          test: /fileName\.js$/,
          loader: 'string-replace',
          query: {
            search: 'jQuery',
            replace: 'window.$'
          }
        }
      ]
    }
  </code></pre>
  
  <p>I have tried this as well:</p>
  
  <pre><code>module: {
          loaders: [
            {
              test: /fileName\.js$/,
              loader: 'string-replace-loader',
              query: {
                search: 'jQuery',
                replace: 'window.$'
              }
            }
          ]
        }
  </code></pre>
  
  <p>What do I need to do to ensure this loader works in webpack 3. There are no errors but string is not getting replaced in the target file. </p>