gulp-strip-code
gulp-strip-code copied to clipboard
This doesn't work with HTML comments
Hi,
I'm migrating some very old code from Grunt to Gulp. This plugin popped up when I googled for gulp replacements for grunt-strip-code
So I'm munging some template HTML that I have no control over - trying to remove a Google Tag Manager block enclosed by tags. It looks like this plugin doesn't support this style of comment?
Would it be easy to implement?
gulpStripCode({
pattern: /<!-- Google Tag Manager -->[\s\S]*?<!-- End Google Tag Manager -->/
}
Incidentally is the way I'm doing it now, if that's at all helpful. :)