postcss-prefix
Replace `:host` elements with a prefix of your choosing
Last updated 2 months ago by goto-bus-stop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install postcss-prefix 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (2 months ago)

11 Versions

  • 3.0.0                                ...           2 months ago
  • 2.2.0                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 1
This Week 6
This Month 49
Last Day 3
Last Week 15
Last Month 53
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |