PostCSS plugin to remove rules by selector.
Installation
$ npm install postcss-remove-rules
Usage
// dependenciesvar fs = var postcss = var remove = // css to be processedvar css = fs // process cssvar output = css
Options
rulesToRemove
An object where each specified key is a CSS selector and each value is either '*''
indicating that all rules for that
selector should be removed, a string matching the CSS property name to remove (e.g. 'font-style'
), or an array of
strings containing CSS properties to be removed (e.g. ['position', 'display']
).
See PostCSS docs for examples for your environment.