postcss-filter-declarations
PostCSS plugin to filter declarations by property names
var fs = ; var postcss = ;var filterDeclarations = ; css;
{ }
↓
{ }
Installation
npm install postcss-filter-declarations
API
var filterDeclarations = ;
filterDeclarations([options])
options: Object
Return: Function
options.properties
(alias: options.props)
Type: Stirng
or Array
of String
Default: []
Removes all CSS declarations except for the proerties specified by this option.
css; //=> 'a {color: red;} b {}'
options.exclude
Type: Boolean
Defult: false
true
inverts the filtering result.
css; //=> 'a {} b {background: blue;}'
License
Copyright (c) 2014 - 2015 Shinnosuke Watanabe
Licensed under the MIT License.