Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Update postcss-cli usage example #444

Merged
merged 2 commits into from
Jan 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/content/postcss.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ and previous default cssnext behavior.
$ npm install postcss-cli --save-dev
```

Here is an example of the json config you might use with something like
``$ postcss -c postcss.config.json``.
Here is an example of the JS config you might use with something like
``$ postcss input.css -o output.css``.

**postcss.config.js**
```js
{
"use": [
"postcss-import",
"postcss-url",
"postcss-cssnext",
module.exports = {
plugins: [
require('postcss-import'),
require('postcss-url'),
require('postcss-cssnext'),
// add your "plugins" here
// ...
// and if you want to compress
// "cssnano",
"postcss-browser-reporter",
"postcss-reporter"
// require('cssnano'),
require('postcss-browser-reporter')
]
}
```
Expand Down