Search code examples
javascriptgulpuncss

Gulp-uncss ignore option


The ignore option doesn't seem to be working for me.

I'm doing the following:

    .pipe(plugins.uncss({
        html: glob.sync('./**/*.{csh,h}tml'),
        ignore: ['.active']
    })

Can anyone help?


Solution

  • Try to use the regex form for your ignore option:

    .pipe(plugins.uncss({
      html: glob.sync('./**/*.{csh,h}tml'),
      ignore: ['/active/']
    })