From 2fbec071b441ec40f36150a492331d3eb10b361c Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 6 Feb 2018 12:21:20 +0000 Subject: [PATCH] postcss: add page (#1969) --- pages/common/postcss.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/common/postcss.md diff --git a/pages/common/postcss.md b/pages/common/postcss.md new file mode 100644 index 0000000000..0646e3c297 --- /dev/null +++ b/pages/common/postcss.md @@ -0,0 +1,35 @@ +# postcss + +> PostCSS is a tool for transforming styles with JS plugins. + +- 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 available options and examples: + +`postcss --help`