Skip to content

Commit

Permalink
Merge c868dd0 into 4955792
Browse files Browse the repository at this point in the history
  • Loading branch information
y-gagar1n committed Jul 15, 2018
2 parents 4955792 + c868dd0 commit b9da61a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,30 @@ If you use JS styles without the [`postcss-js`][postcss-js] parser, add the `exe

|Name|Type|Default|Description|
|:--:|:--:|:-----:|:----------|
|[`path`](#path)|`{String}`|`undefined`|PostCSS Config Path|
|[`path`](#path)|`{String}`|`undefined`|PostCSS Config Directory|
|[`context`](#context)|`{Object}`|`undefined`|PostCSS Config Context|

#### `Path`

You can manually specify the path to search for your config (`postcss.config.js`) with the `config.path` option. This is needed if you store your config in a separate e.g `./config || ./.config` folder.

> ⚠️ Otherwise it is **unnecessary** to set this option and is **not** recommended
> ⚠️ Note that you **can't** use a **filename** other than the [supported config formats] (e.g `.postcssrc.js`, `postcss.config.js`), this option only allows you to manually specify the **directory** where config lookup should **start** from
**webpack.config.js**
```js
{
loader: 'postcss-loader',
options: {
config: {
path: 'path/to/postcss.config.js'
path: 'path/to/.config/'
path: 'path/to/.config/css.config.js'
}
}
}
```

[supported config formats]: https://github.com/michael-ciniawsky/postcss-load-config#usage

#### `Context (ctx)`

|Name|Type|Default|Description|
Expand Down

0 comments on commit b9da61a

Please sign in to comment.