Closed balping closed 4 years ago
+1
It would be very easy to implement:
After the native String.replace
implementation is used you can easy use function in replaced
instead of a string. Only the optionsSchema
object has to be adjusted to allow also a function.
Ah I see, you figured it out, too ;) https://github.com/Va1/string-replace-loader/pull/41/commits
implemented. thanks
Would be great if I could specify a callback function as a replacement like: