0

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?

Jimmy
  • 428
  • 5
  • 19

1 Answers1

4

Try to use the regex form for your ignore option:

.pipe(plugins.uncss({
  html: glob.sync('./**/*.{csh,h}tml'),
  ignore: ['/active/']
})
Preview
  • 35,317
  • 10
  • 92
  • 112