commands.sh

postcss

all

Transform styles with JS plugins.

More info →

Options (5)

-o, --outputboolean

Parse and transform a CSS file and output to a specific file

Example: postcss {{path/to/file}} {{[-o|--output]}} {{path/to/file}}
-d, --dirboolean

Parse and transform a CSS file and output to a specific directory

Example: postcss {{path/to/file}} {{[-d|--dir]}} {{path/to/directory}}
-r, --replaceboolean

Parse and transform a CSS file in-place

Example: postcss {{path/to/file}} {{[-r|--replace]}}
-w, --watchboolean

Watch for changes to a CSS file

Example: postcss {{path/to/file}} {{[-w|--watch]}}
-h, --helpboolean

Display help

Example: postcss {{[-h|--help]}}

Examples (8)

Parse and transform a CSS file

postcss path/to/file

Parse and transform a CSS file and output to a specific file

postcss path/to/file [-o|--output] path/to/file

Parse and transform a CSS file and output to a specific directory

postcss path/to/file [-d|--dir] path/to/directory

Parse and transform a CSS file in-place

postcss path/to/file [-r|--replace]

Specify a custom PostCSS parser

postcss path/to/file --parser parser

Specify a custom PostCSS syntax

postcss path/to/file --syntax syntax

Watch for changes to a CSS file

postcss path/to/file [-w|--watch]

Display help

postcss [-h|--help]
made by @shridhargupta | data from tldr-pages