postcss - Command-line client for node??-postcss
- postcss [input.css] [OPTIONS] [-o|--output output.css] [--watch|-w]
postcss <input.css>... [OPTIONS] --dir
<output-directory> [--watch|-w] postcss <input-directory>
[OPTIONS] --dir <output-directory> [--watch|-w] postcss
<input-glob-pattern> [OPTIONS] --dir <output-directory>
[--watch|-w] postcss <input.css>... [OPTIONS] --replace
- --include-dotfiles
- Enable glob to match files/dirs that begin with "."
[boolean]
- --poll
- Use polling for file watching. Can optionally pass pol ling interval;
default 100 ms
- --config
- Set a custom directory to look for a config file [string]
- postcss input.css -o
output.css
- Basic usage
- postcss src/**/*.css
--base src --dir bu
- Glob Pattern & output
- ild cat input.css | postcss -u autoprefixer Piping input & output >
output.css
If no input files are passed, it reads from stdin. If neither -o,
--dir, or --re place is passed, it writes to stdout.
If there are multiple input files, the --dir or --replace option
must be passed.
Input files may contain globs (e.g. src/**/*.css). If you pass an
input director y, it will process all files in the directory and any
subdirectories, respecting
- the glob pattern.
For more details, please see
https://github.com/postcss/postcss-cli