Skip to content

CLI support for piping #375

@jfbrennan

Description

@jfbrennan

The CLI does not seem to support piping. I'm trying:

postcss ./src/all.css | lightningcss --minify -o ./dist/min.css

and I get

error: The following required arguments were not provided:
    <INPUT_FILE>

Being able to pipe output from one tool into Lightning CSS for minification would be greatly appreciated (or tell me what I'm doing wrong 🤗).

And yes I understand Lightning CSS wants to be my PostCSS too, but I refuse to mix tools like that. Never works correctly. Decoupled single-purpose tools are a must imo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions