Detalhes do pacote

postcss-prefix

stackcss696MIT3.0.0

Replace :host elements with a prefix of your choosing

readme (leia-me)

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

changelog (log de mudanças)

postcss-prefix change log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

3.0.0

  • Update to the postcss 8 plugin API.
  • Require Node.js 8+.