We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a023e commit b790a49Copy full SHA for b790a49
README.md
@@ -0,0 +1,29 @@
1
+# postcss-prefix
2
+Replace `:host` elements with a prefix of your choosing
3
+
4
+## Usage
5
+```js
6
+const prefix = require('postcss-prefix')
7
+const postcss = require('postcss')
8
9
+const css = `
10
+ :host { color: blue }
11
+ .hello { color: black }
12
+`
13
14
+const newCss = postcss()
15
+ .use(prefix('#hello-world'))
16
+ .process(css)
17
+ .toString()
18
19
+console.log(newCss)
20
+// => #hello-world { color: blue }
21
+// => .hello { color: black }
22
23
+```
24
25
+## See Also
26
+- [sheetify](https://github.com/stackcss/sheetify)
27
28
+## License
29
+[MIT](https://tldrlegal.com/license/mit-license)
0 commit comments