Skip to content

Repository files navigation

postcss-prefix

Replace :host elements with a prefix of your choosing

Usage

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

See Also

License

MIT

About

Prefix CSS selectors

Resources

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages