File tree 1 file changed +32
-1
lines changed
1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
1
# postcss-inline-class
2
2
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
+ ```
4
35
5
36
## Examples
6
37
You can’t perform that action at this time.
0 commit comments