Skip to content

Commit 054ee90

Browse files
authored
docs: fix default value of config (#626) (#627)
1 parent f6e1cde commit 054ee90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ There is the special `config` option for config files. How it works and how it c
222222
We recommend do not specify `from`, `to` and `map` options, because this can lead to wrong path in source maps.
223223
If you need source maps please use the [`sourcemap`](#sourcemap) option.
224224

225+
For large projects, to optimize performance of the loader, it is better to provide `postcssOptions` in loader
226+
config and specify `config: false`. This approach removes the need to lookup and load external config files multiple
227+
times during compilation.
228+
225229
#### `object`
226230

227231
Setup `plugins`:
@@ -405,7 +409,7 @@ Type:
405409
type config = boolean | string;
406410
```
407411

408-
Default: `undefined`
412+
Default: `true`
409413

410414
Allows to set options using config files.
411415
Options specified in the config file are combined with options passed to the loader, the loader options overwrite options from config.

0 commit comments

Comments
 (0)