Skip to content

Commit af2f200

Browse files
docs(README): fix typo, small refactor
1 parent eddcb06 commit af2f200

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ cat input.css | postcss [OPTIONS] > output.css
4040
|Name|Type|Default|Description|
4141
|:---|:--:|:-----:|:----------|
4242
|`-d, --dir`|`{String}`|`undefined`|Output Directory|
43+
|`-x, --ext`|`{String}`|`extname(output)`|Output File Extension|
4344
|`-o, --output`|`{String}`|`undefined`|Output File|
44-
|`-r, --replace`|`{String}`|`undefined`|Input <=> Output|
45-
|`-x, --extension`|`{String}`|`extname(output)`|Output File Extension|
45+
|`-r, --replace`|`{String}`|`undefined`|Replace Input <=> Output|
4646
|`-p, --parser`|`{String}`|`undefined`|Custom PostCSS Parser|
4747
|`-s, --syntax`|`{String}`|`undefined`|Custom PostCSS Syntax|
4848
|`-s, --stringifier`|`{String}`|`undefined`|Custom PostCSS Stringifier|
49-
|`-w, --watch`|`{Boolean}`|`false`|Watch files for changes and recompile as needed
50-
|`-u, --use`|`{Array}`|`[]`|List of PostCSS Plugins|
51-
|`-m, --map`|`{Boolean}`|`{ inline: true }`|External Sourcemap|
49+
|`-w, --watch`|`{Boolean}`|`false`|Enable Watch Mode|
50+
|`-u, --use`|`{Array}`|`[]`|PostCSS Plugins|
51+
|`-m, --map`|`{Boolean}`|`{ inline: true }`|External Sourcemaps|
5252
|`--no-map`|`{Boolean}`|`false`|Disable Sourcemaps|
53-
|`-e, --env`|`{String}`|`process.env.NODE_ENV`|Shortcut for setting `$NODE_ENV`|
54-
|`-c, --config`|`{String}`|`dirname(file)`|Path to `postcss.config.js`|
53+
|`-e, --env`|`{String}`|`process.env.NODE_ENV`|Sets `$NODE_ENV`|
54+
|`-c, --config`|`{String}`|`dirname(file)`|PostCSS Config Path `postcss.config.js`|
5555
|`-h, --help`|`{Boolean}`|`false`|CLI Help|
5656
|`-v, --version`|`{Boolean}`|`false`|CLI Version|
5757

@@ -63,7 +63,6 @@ cat input.css | postcss [OPTIONS] > output.css
6363
If you need to pass options to your plugins, or have a long plugin chain, you'll want to use a configuration file.
6464

6565
**postcss.config.js**
66-
6766
```js
6867
module.exports = {
6968
parser: 'sugarss',
@@ -85,7 +84,6 @@ For more advanced usage it's recommend to to use a function in `postcss.config.j
8584
|`options`|`{Object}`|`map, parser, syntax, stringifier`|PostCSS Options|
8685

8786
**postcss.config.js**
88-
8987
```js
9088
module.exports = (ctx) => ({
9189
map: ctx.options.map,
@@ -105,7 +103,6 @@ postcss input.sss -p sugarss -o output.css -m
105103
```
106104

107105
**postcss.config.js**
108-
109106
```js
110107
module.exports = (ctx) => ({
111108
map: ctx.options.map,

0 commit comments

Comments
 (0)