package
Replace `:host` elements with a prefix of your choosing
npm install postcss-prefixGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Replace :host elements with a prefix of your choosing
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 }
`goto-bus-stop
renee@kooi.me
Estimated unpacked size across 3 packages.
253.3 kB
Includes dependencies.