Gulp-uncss ignore option

2.3k Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

Try to use the regex form for your ignore option:

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