2025-03-14 21:59:59 -06:00
|
|
|
# postcss
|
|
|
|
|
|
|
|
|
|
> Transform styles with JS plugins.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/postcss/postcss-cli#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Parse and transform a CSS file:
|
|
|
|
|
|
|
|
|
|
`postcss {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Parse and transform a CSS file and output to a specific file:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`postcss {{path/to/file}} {{[-o|--output]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Parse and transform a CSS file and output to a specific directory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`postcss {{path/to/file}} {{[-d|--dir]}} {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Parse and transform a CSS file in-place:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`postcss {{path/to/file}} {{[-r|--replace]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`postcss {{path/to/file}} {{[-w|--watch]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`postcss {{[-h|--help]}}`
|