@moderntribe/postcss-multi-selector-replace
v1.0.0
Published
PostCSS plugin for selector replacement.
Downloads
6
Readme
postcss-multi-selector-replace
This is a fork of postcss-selector-replace and is used on our projects at Modern Tribe.
Example
postcss.config.js
module.exports = {
plugins: [
require('postcss-selector-replace')({
"before": ["[base]", "[test]"],
"after": ["^", "~"]
})
]
}
before.css
[base]contentpage {
background-color: red;
}
after.css
^contentpage {
background-color: red;
}