[PostCSS] plugin for selector prefixer.
npm install postcss-selector-prefixer[PostCSS] plugin for selector prefixer.
[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/amaranter/postcss-selector-prefixer.svg
[ci]: https://travis-ci.org/amaranter/postcss-selector-prefixer
[npm-img]: https://badge.fury.io/js/postcss-selector-prefixer.svg
[npm]: https://badge.fury.io/js/postcss-selector-prefixer
``css`
.foo {
/ Input example /
color: red;
}
`css`
.myPrefix_foo {
/ Output example /
color: red;
}Demo
!Gif Demo
`js``
postcss([ require('postcss-selector-prefixer')({ prefix: 'myPrefix_' }) ])
See [PostCSS] docs for examples for your environment.