Skip to content

Commit 424f323

Browse files
authored
Update README.md
1 parent ebc64c3 commit 424f323

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
# postcss-inline-class
22

3-
Inline CSS classes in other CSS classes using postcss.
3+
A webpack plugin to inline CSS classes in other CSS classes using postcss.
4+
5+
## Installation
6+
7+
```
8+
yarn add -D @sector-labs/postcss-inline-class
9+
```
10+
11+
## Usage
12+
13+
Just add `postcss-inline-class` in the list of the webpack plugins
14+
15+
```js
16+
plugins: [
17+
require('@sector-labs/postcss-inline-class')(),
18+
]
19+
```
20+
21+
## Resolving files
22+
23+
`postcss-inline-class` uses [resolve](https://github.com/browserify/resolve) under the hood to support file resolving.
24+
25+
```js
26+
plugins: [
27+
require('@sector-labs/postcss-inline-class')({
28+
paths: [
29+
path.join(process.cwd(), '/theme/dark'),
30+
path.join(process.cwd(), '/theme/default'),
31+
],
32+
}),
33+
],
34+
```
435

536
## Examples
637

0 commit comments

Comments
 (0)