postcss-prefix

3.0.0 • Public • Published

postcss-prefix

Replace :host elements with a prefix of your choosing

Usage

const prefix = require('postcss-prefix')
const postcss = require('postcss')
 
const css = `
  :host { color: blue }
  .hello { color: black }
`
 
const newCss = postcss([ prefix('#hello-world') ])
  .process(css)
  .toString()
 
console.log(newCss)
// => #hello-world { color: blue }
// => .hello { color: black }
`

See Also

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i postcss-prefix

Weekly Downloads

121

Version

3.0.0

License

MIT

Unpacked Size

6.48 kB

Total Files

10

Last publish

Collaborators

  • bret
  • goto-bus-stop
  • yoshuawuyts
  • ahdinosaur
  • hughsk
  • jongacnik
  • zhouhancheng