mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 09:49:04 +00:00
Update cheatsheets
This commit is contained in:
41
postcss
Normal file
41
postcss
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# postcss
|
||||
|
||||
> Transform 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`
|
||||
Reference in New Issue
Block a user