1.0.0 • Published 4 years ago

@moderntribe/postcss-multi-selector-replace v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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;
}