You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-21Lines changed: 25 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,33 +30,36 @@ Usage:
30
30
postcss <input.css>... [OPTIONS] --replace
31
31
32
32
Basic options:
33
-
-o, --output Output file [string]
34
-
-d, --dir Output directory [string]
35
-
-r, --replace Replace (overwrite) the input file [boolean]
36
-
--map, -m Create an external sourcemap
37
-
--no-map Disable the default inline sourcemaps
38
-
--verbose Be verbose [boolean]
39
-
--watch, -w Watch files for changes and recompile as needed [boolean]
40
-
--env A shortcut for setting NODE_ENV [string]
41
-
--include-dotfiles Enables glob to match files/dirs that begin with "." [boolean]
42
-
43
-
Options for when not using a config file:
33
+
-o, --output Output file [string]
34
+
-d, --dir Output directory [string]
35
+
-r, --replace Replace (overwrite) the input file [boolean]
36
+
-m, --map Create an external sourcemap
37
+
--no-map Disable the default inline sourcemaps
38
+
-w, --watch Watch files for changes and recompile as needed [boolean]
39
+
--verbose Be verbose [boolean]
40
+
--env A shortcut for setting NODE_ENV [string]
41
+
42
+
Options for use without a config file:
44
43
-u, --use List of postcss plugins to use [array]
45
44
--parser Custom postcss parser [string]
46
45
--stringifier Custom postcss stringifier [string]
47
46
--syntax Custom postcss syntax [string]
48
47
48
+
Options for use with --dir:
49
+
--ext Override the output file extension; for use with --dir [string]
50
+
--base Mirror the directory structure relative to this path in the output
51
+
directory, for use with --dir [string]
52
+
49
53
Advanced options:
50
-
--ext Override the output file extension; for use with --dir [string]
51
-
--base Mirror the directory structure relative to this path in the output
52
-
directory, for use with --dir [string]
53
-
--poll Use polling for file watching. Can optionally pass polling interval;
54
-
default 100 ms
55
-
--config Set a custom directory to look for a config file [string]
54
+
--include-dotfiles Enable glob to match files/dirs that begin with "."
55
+
[boolean]
56
+
--poll Use polling for file watching. Can optionally pass polling
57
+
interval; default 100 ms
58
+
--config Set a custom directory to look for a config file [string]
56
59
57
60
Options:
58
-
--version Show version number [boolean]
59
-
-h, --help Show help [boolean]
61
+
--version Show version number [boolean]
62
+
-h, --help Show help [boolean]
60
63
61
64
Examples:
62
65
postcss input.css -o output.css Basic usage
@@ -68,8 +71,9 @@ If no input files are passed, it reads from stdin. If neither -o, --dir, or
68
71
69
72
If there are multiple input files, the --dir or --replace option must be passed.
70
73
71
-
Input files may contain globs (e.g. src/**/*.css). If you pass an input directory, it will process
72
-
all files in the directory and any subdirectories, respecting the glob pattern.
74
+
Input files may contain globs (e.g. src/**/*.css). If you pass an input
75
+
directory, it will process all files in the directory and any subdirectories,
76
+
respecting the glob pattern.
73
77
```
74
78
75
79
> ℹ️ More details on custom parsers, stringifiers and syntaxes, can be found [here](https://github.com/postcss/postcss#syntaxes).
0 commit comments