postcss / postcss-cli

CLI for postcss
Other
824 stars 93 forks source link

Bundling/concatenation of css files is not allowed? #434

Closed skitsanos closed 2 years ago

skitsanos commented 2 years ago

postcss src/styles/*.css -o dist/lib.css still firing the error Input Error: Must use --dir or --replace with multiple input files

PostCSS does not allow bundling into a single file?

Unfortunately couldn't find anything about it in the documentation...

RyanZim commented 2 years ago

No, we cannot concatenate files, because CSS is dependent on order. If you know order does not matter, you can use regular cat and pipe to postcss like this: cat src/styles/*.css | postcss -o dist/lib.css