Va1 / string-replace-loader

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

Add an option to replace all the occurrences #85

Open lotmek opened 1 month ago

lotmek commented 1 month ago

Description

The loader currently uses String.prototype.replace() to replace the first occurrence of the given search parameter. But I think it would be nice to add an option to replace all the occurrences in the file with String.prototype.replaceAll().