Skip to content

Commit 9f2cc28

Browse files
committed
update docs
1 parent 99be619 commit 9f2cc28

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/en/options.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030

3131
### postcss
3232

33-
- type: `Array` or `Function`
33+
- type: `Array` or `Function` or `Object`
34+
- `Object` format only supported in ^8.5.0
3435

3536
Specify custom PostCSS plugins to be applied to CSS inside `*.vue` files. If using a function, the function will called using the same loader context and should return an Array of plugins.
3637

@@ -46,6 +47,17 @@
4647
}
4748
```
4849

50+
This option can also be 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:
51+
52+
``` js
53+
postcss: {
54+
plugins: [...], // list of plugins
55+
options: {
56+
parser: sugarss // use sugarss parser
57+
}
58+
}
59+
```
60+
4961
### cssSourceMap
5062

5163
- type: `Boolean`

0 commit comments

Comments
 (0)