Skip to content

Commit b096388

Browse files
committed
Update README.md: about config
1 parent 4da107f commit b096388

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ var combedLESS = comb.processString(less, 'less');
140140
141141
### Through `.csscomb.json`
142142
143-
`csscomb` is configured using [.csscomb.json](https://github.com/csscomb/csscomb.js/blob/master/.csscomb.json) file, located in the project root.
143+
`csscomb` is configured using [.csscomb.json](https://github.com/csscomb/csscomb.js/blob/master/config/csscomb.json) file, located in the project root.
144144
145145
Example configuration:
146146
```json
@@ -166,9 +166,14 @@ Example configuration:
166166
}
167167
```
168168
169+
**Note**: you can use one of [predefined config files](https://github.com/csscomb/csscomb.js/tree/master/config)
170+
```bash
171+
cp ./node_modules/csscomb/config/csscomb.json .csscomb.json
172+
```
173+
169174
### Through `.css`-template
170175
171-
Instead of configuring all the options one by one, you can use a CSS-template file instead: CSSComb.js would detect the codestyle used in this file and would use it as a config. All the existent properties except for the `sort-order` could be configured this way.
176+
Instead of configuring all the options one by one, you can use a CSS-template file: CSSComb.js would detect the codestyle used in this file and would use it as a config. All the existent properties except for the `sort-order` could be configured this way.
172177
173178
To provide a template just add `"template"` with the path to the template in the `.csscomb.json`:
174179

0 commit comments

Comments
 (0)