Skip to content Skip to sidebar Skip to footer

Uncss, Regex Pattern For .no-'string', .is-'string'

I'm having some regex woes. Using gulp-uncss I'd like to add some classes to the ignore option. Any class that starts with .no- Any class that contains .is- .no-flexbox {} .test.i

Solution 1:

Your regexes look incomplete. May be you should do like this

.pipe(uncss({
    html: ['tmp/public_html/*.html'],
    ignore: ['/\.no-\w+/g', '/\.\w+\s?\.is-\w+/g']
}))

Post a Comment for "Uncss, Regex Pattern For .no-'string', .is-'string'"