Va1 / string-replace-loader

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

string-replace vs string-replace-loader #37

Closed ianengelbrecht closed 6 years ago

ianengelbrecht commented 7 years ago

For your documentation, webpack gives this message:

BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders. You need to specify 'string-replace-loader' instead of 'string-replace', see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed

hanzhangyu commented 7 years ago

This is just a demo for webpack 1, I think. So if you use other version, fix it yourself please.

jgarite commented 6 years ago

I had the same error. Replace: loader: 'string-replace', with: loader: 'string-replace-loader', in your webpack.config.js file

Would be nice if this was noted in the readme.

Va1 commented 6 years ago

readme updated. thanks everyone