File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
77
88## 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.
1010
1111### Global file
1212Let's say we have ` cssClasses.json ` with all CSS modules inside:
@@ -38,7 +38,7 @@ posthtml([require('posthtml-css-modules')('./cssClasses.json')])
3838```
3939
4040### 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.
4242For example, ` profile.js ` and ` article.js ` inside directory ` cssModules/ ` :
4343``` js
4444// profile.js
@@ -53,7 +53,7 @@ module.exports = {
5353 title: ' _article__tile _heading'
5454}
5555```
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() ` .
5757
5858``` js
5959var posthtml = require (' posthtml' );
You can’t perform that action at this time.
0 commit comments