You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/features/postcss.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Any CSS output processed by `vue-loader` is piped through [PostCSS](https://gith
4
4
5
5
## Using a Config File
6
6
7
-
Starting in 11.0 `vue-loader` supports auto-loading the same PostCss config files supported by `postcss-loader`:
7
+
Starting in 11.0 `vue-loader` supports auto-loading the same PostCss config files supported by [`postcss-loader`](https://github.com/postcss/postcss-loader#usage):
Copy file name to clipboardExpand all lines: docs/en/options.md
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -81,17 +81,22 @@ module.exports = {
81
81
82
82
### postcss
83
83
84
+
> Note: in >=11.0.0 it is recommended to use a PostCSS config file instead. [The usage is the same as `postcss-loader`](https://github.com/postcss/postcss-loader#usage).
85
+
84
86
- type: `Array` or `Function` or `Object`
85
87
86
88
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.
87
89
88
90
```js
89
91
// ...
90
-
vue: {
91
-
// note: do not nest the `postcss` option under `loaders`
92
-
postcss: [require('postcss-cssnext')()],
93
-
loaders: {
94
-
// ...
92
+
{
93
+
loader:'vue-loader',
94
+
options: {
95
+
// note: do not nest the `postcss` option under `loaders`
0 commit comments