File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
## Usage
9
- I suggest to use [ postcss-modules] ( https://github.com/outpunk/postcss-modules ) to generate CSS modules.
9
+ I suggest using [ postcss-modules] ( https://github.com/outpunk/postcss-modules ) to generate CSS modules.
10
10
11
11
### Global file
12
12
Let's say we have ` cssClasses.json ` with all CSS modules inside:
@@ -38,7 +38,7 @@ posthtml([require('posthtml-css-modules')('./cssClasses.json')])
38
38
```
39
39
40
40
### Directory with several files
41
- CSS modules could be also separated in a several files.
41
+ CSS modules could be also separated into several files.
42
42
For example, ` profile.js ` and ` article.js ` inside directory ` cssModules/ ` :
43
43
``` js
44
44
// profile.js
@@ -53,7 +53,7 @@ module.exports = {
53
53
title: ' _article__tile _heading'
54
54
}
55
55
```
56
- You can use both JS and JSON for declaration, as long as the file could be required via ` require() ` .
56
+ You can use both JS and JSON for a declaration, as long as the file could be required via ` require() ` .
57
57
58
58
``` js
59
59
var posthtml = require (' posthtml' );
You can’t perform that action at this time.
0 commit comments