gulp-inject-string
gulp-inject-string copied to clipboard
Replace injecting captured groups unintentionally
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!