gulp-inject-string icon indicating copy to clipboard operation
gulp-inject-string copied to clipboard

Replace injecting captured groups unintentionally

Open Darkade opened this issue 3 years ago • 0 comments

Hi! I'm using inject.replace to turn my webpack output into a single file. It works for the most part, except for the files that I've noticed have this string $& which is either generated by webpack or the package I'm using. This results in the search term being injected into the inject.replace result. Since that's what $& does in regex.

Is there a way to prevent this behavior? Thanks!

Darkade avatar Feb 15 '22 19:02 Darkade