3.0.0 • Published 4 years ago

postcss-prefix v3.0.0

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

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

3.0.0

4 years ago

2.2.0

6 years ago

2.1.2

6 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago