postcss-wrap-selector

1.0.1 • Public • Published

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"]
}

Readme

Keywords

none

Package Sidebar

Install

npm i postcss-wrap-selector

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

3.27 kB

Total Files

4

Last publish

Collaborators

  • kawhi66