No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.eslintrc
.gitignore
.npmignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
index.js
package-lock.json
package.json
test.js

README.md

PostCSS Prepend Selector Build Status

PostCSS plugin Prepend selector for each rule.

.foo {
    /* Input example */
}

.foo, .bar {
    /* Input example */
}
.selector .foo {
  /* Output example */
}

.selector .foo, .selector .bar {
  /* Output example */
}

Usage

postcss([ require('postcss-prepend-selector')( { selector: '.selector ' } ) ])

See PostCSS docs for examples for your environment.