2018-02-06 12:21:20 +00:00
|
|
|
# postcss
|
|
|
|
|
2023-11-15 04:25:25 +00:00
|
|
|
> A tool for transforming styles with JS plugins.
|
2019-05-29 14:53:53 +01:00
|
|
|
> More information: <https://postcss.org>.
|
2018-02-06 12:21:20 +00:00
|
|
|
|
|
|
|
- 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`
|
|
|
|
|
2024-01-30 04:55:24 +00:00
|
|
|
- Display help:
|
2018-02-06 12:21:20 +00:00
|
|
|
|
|
|
|
`postcss --help`
|