Va1 / string-replace-loader

Replace loader for Webpack
MIT License
250 stars 57 forks source link

It's no longer allowed to omit the '-loader' suffix when using loaders. #26

Closed rv-17 closed 6 years ago

felipeloge commented 7 years ago

You need to specify string-replace-loader instead of string-replace.

module.exports = {
  // ...
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: 'string-replace-loader',
        query: {
          search: 'jQuery',
          replace: 'window.$'
        }
      }
    ]
  }
}

Check the migration docs for more information.

julkue commented 7 years ago

Please update the docs!

Va1 commented 6 years ago

thanks guys, docs updated