Skip to content

Commit

Permalink
docs: fix default value of config (#626) (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
Knagis authored Mar 16, 2023
1 parent f6e1cde commit 054ee90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ There is the special `config` option for config files. How it works and how it c
We recommend do not specify `from`, `to` and `map` options, because this can lead to wrong path in source maps.
If you need source maps please use the [`sourcemap`](#sourcemap) option.

For large projects, to optimize performance of the loader, it is better to provide `postcssOptions` in loader
config and specify `config: false`. This approach removes the need to lookup and load external config files multiple
times during compilation.

#### `object`

Setup `plugins`:
Expand Down Expand Up @@ -405,7 +409,7 @@ Type:
type config = boolean | string;
```

Default: `undefined`
Default: `true`

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

0 comments on commit 054ee90

Please sign in to comment.