1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:22:08 +02:00
tldr/pages/common/postcss.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

769 B

postcss

A tool for transforming styles with JS plugins. More information: https://postcss.org.

  • 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}} --output {{path/to/file}}

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

postcss {{path/to/file}} --dir {{path/to/directory}}

  • Parse and transform a CSS file in-place:

postcss {{path/to/file}} --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}} --watch

  • Display help:

postcss --help