Skip to content

Instantly share code, notes, and snippets.

@pirxpilot
Created April 22, 2015 23:27
Show Gist options
  • Save pirxpilot/82f9714b6a176a28286b to your computer and use it in GitHub Desktop.
Save pirxpilot/82f9714b6a176a28286b to your computer and use it in GitHub Desktop.
testing wrapping in yargs
Usage: bin/postcss -use|-p plugin [--config|-c config.json] --output|-o output.
css input.css
Options:
-c, --config JSON file with plugin configuration
-u, --use postcss plugin name (can be used multiple times) [required]
-o, --output Output file
-d, --dir Output directory
--safe Enable postcss safe mode. [boolean]
-v, --version Show version number
-h, --help Show help
Examples:
postcss --use autoprefixer -c options.json -o screen.css screen.css U
s
e
a
u
t
o
p
r
e
f
i
x
e
r
a
s
a
p
o
s
t
c
s
s
p
l
u
g
i
n
postcss --use autoprefixer --autoprefixer.browsers "> 5%" -o screen.css screen.css P
a
s
s
p
l
u
g
i
n
p
a
r
a
m
e
t
e
r
s
i
n
p
l
u
g
i
n
.
o
p
t
i
o
n
n
o
t
a
t
i
o
n
postcss -u postcss-cachify -u autoprefixer -d build *.css U
s
e
m
u
l
t
i
p
l
e
p
l
u
g
i
n
s
a
n
d
m
u
l
t
i
p
l
e
i
n
p
u
t
f
i
l
e
s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment