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/options.md
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -112,20 +112,30 @@ module.exports = {
112
112
}
113
113
```
114
114
115
-
### postcss.configRoot
115
+
### postcss.config
116
116
117
-
> New in 13.2.0
117
+
> New in 13.2.1
118
118
119
-
- type: `string`
120
-
- default: `process.cwd()`
119
+
- type: `Object`
120
+
- default: `undefined`
121
121
122
-
Specify an alternative root directory for [postcss-load-config](https://github.com/michael-ciniawsky/postcss-load-config) to search for PostCSS config files in.
122
+
This field allows customizing PostCSS config in the same way as [postcss-loader](https://github.com/postcss/postcss-loader#config-1).
123
123
124
-
```js
125
-
postcss: {
126
-
configRoot:path.resolve('./src')
127
-
}
128
-
```
124
+
-**postcss.config.path**
125
+
126
+
Specify a path (file or directory) to load the PostCSS config file from.
127
+
128
+
```js
129
+
postcss: {
130
+
config: {
131
+
path:path.resolve('./src')
132
+
}
133
+
}
134
+
```
135
+
136
+
-**postcss.config.ctx**
137
+
138
+
Provide context to PostCSS plugins. See [postcss-loader docs](https://github.com/postcss/postcss-loader#context-ctx) for more details.
0 commit comments