gulp-strip-code icon indicating copy to clipboard operation
gulp-strip-code copied to clipboard

This doesn't work with HTML comments

Open scottlet opened this issue 7 years ago • 1 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?

scottlet avatar Sep 20 '18 14:09 scottlet

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. :)

scottlet avatar Sep 20 '18 14:09 scottlet