Closed ianengelbrecht closed 6 years ago
This is just a demo for webpack 1, I think. So if you use other version, fix it yourself please.
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.
readme updated. thanks everyone
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