Skip to content

Commit 8f204c7

Browse files
committed
update docs for postcss
1 parent 1b70544 commit 8f204c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/en/features/postcss.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,18 @@ module.exports = {
4747
}
4848
}
4949
```
50+
51+
In addition to providing an Array of plugins, the `postcss` option also accepts:
52+
53+
- A function that returns an array of plugins;
54+
55+
- An object that contains options to be passed to the PostCSS processor. This is useful when you are using PostCSS projects that relies on custom parser/stringifiers:
56+
57+
``` js
58+
postcss: {
59+
plugins: [...], // list of plugins
60+
options: {
61+
parser: sugarss // use sugarss parser
62+
}
63+
}
64+
```

0 commit comments

Comments
 (0)