LinuxCommandLibrary

postcss

postcss

TLDR

Parse and transform a CSS file

$ postcss [path/to/file]
copy


Parse and transform a CSS file and output to a specific file
$ postcss [path/to/file] --output [path/to/file]
copy


Parse and transform a CSS file and output to a specific directory
$ postcss [path/to/file] --dir [path/to/directory]
copy


Parse and transform a CSS file in-place
$ postcss [path/to/file] --replace
copy


Specify a custom PostCSS parser
$ postcss [path/to/file] --parser [parser]
copy


Specify a custom PostCSS syntax
$ postcss [path/to/file] --syntax [syntax]
copy


Watch for changes to a CSS file
$ postcss [path/to/file] --watch
copy


Display available options and examples
$ postcss --help
copy

Copied to clipboard