Skip to content

Commit 3d39ab7

Browse files
committed
add postcss plugin options usage docs into readme
1 parent 7fd7d90 commit 3d39ab7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,24 @@ To add support for different CSS syntaxes (e.g. SCSS), perform the following two
252252
".scss": {
253253
"syntax": "postcss-scss",
254254
"plugins": [
255-
["postcss-import-sync2", {
256-
"path": ["src/styles", "shared/styles"]
257-
}],
258255
"postcss-nested"
259256
]
260257
}
261258
}
262259
```
263-
260+
261+
Postcss plugins can have options specified by wrapping the name and an options object in an array inside your config
262+
263+
```json
264+
"plugins": [
265+
["postcss-import-sync2", {
266+
"path": ["src/styles", "shared/styles"]
267+
}],
268+
"postcss-nested"
269+
]
270+
```
271+
272+
264273
### Custom Attribute Mapping
265274

266275
You can set your own attribute mapping rules using the `attributeNames` option.

0 commit comments

Comments
 (0)