Options (5)
-o, --outputbooleanParse and transform a CSS file and output to a specific file
Example:
postcss {{path/to/file}} {{[-o|--output]}} {{path/to/file}}-d, --dirbooleanParse and transform a CSS file and output to a specific directory
Example:
postcss {{path/to/file}} {{[-d|--dir]}} {{path/to/directory}}-r, --replacebooleanParse and transform a CSS file in-place
Example:
postcss {{path/to/file}} {{[-r|--replace]}}-w, --watchbooleanWatch for changes to a CSS file
Example:
postcss {{path/to/file}} {{[-w|--watch]}}-h, --helpbooleanDisplay help
Example:
postcss {{[-h|--help]}}Examples (8)
Parse and transform a CSS file
postcss path/to/fileParse and transform a CSS file and output to a specific file
postcss path/to/file [-o|--output] path/to/fileParse and transform a CSS file and output to a specific directory
postcss path/to/file [-d|--dir] path/to/directoryParse and transform a CSS file in-place
postcss path/to/file [-r|--replace]Specify a custom PostCSS parser
postcss path/to/file --parser parserSpecify a custom PostCSS syntax
postcss path/to/file --syntax syntaxWatch for changes to a CSS file
postcss path/to/file [-w|--watch]Display help
postcss [-h|--help]made by @shridhargupta | data from tldr-pages