npm.io
1.0.1 • Published 6 years ago

postcss-wrap-selector

Licence
MIT
Version
1.0.1
Deps
1
Size
3 kB
Vulns
6
Weekly
0
Stars
1

postcss-wrap-selector

PostCSS plugin for adding a parent selector to all rules in a css file.

Options

There are two interesting configs about this plugins. The selector option takes a string value that should be placed at the beginning of each selector, including selector lists separated by commas. The skipRootSelector option takes a string or an array, if a selector starts with specified root selector, this selector will be skipped.

{
  "selector": ".parent",
  "skipRootSelector": [".lightblue", ".black"]
}