html-critical-webpack-plugin icon indicating copy to clipboard operation
html-critical-webpack-plugin copied to clipboard

How to pass args to `ignore:` ?

Open jamesfawcett opened this issue 4 years ago • 1 comments

Hello sorry to bother you, what format do you need to pass args to ignore:? Does it accept CSS property names?

Could I use ignore: [".visitor-type__flyout"],

Thanks James

jamesfawcett avatar Jul 03 '20 18:07 jamesfawcett

Based on the critical docs, it looks like ignore expects CSS rules

// ignore CSS rules
ignore: ['font-face',/some-regexp/],

thescientist13 avatar Jul 04 '20 17:07 thescientist13