parcel-bundler / lightningcss

An extremely fast CSS parser, transformer, bundler, and minifier written in Rust.
https://lightningcss.dev
Mozilla Public License 2.0
6.42k stars 182 forks source link

Single input errors with claim of multiple inputs #844

Open mkahvi opened 1 hour ago

mkahvi commented 1 hour ago

Attempting to run the CLI with slightly modified sample command:

lightningcss --minify --bundle --targets ">= 0.25%" css/main.css -o dist/main.css

Causes the error:

Cannot use the --output-file option with multiple inputs. Use --output-dir instead.

How do I make it understand there's no multiple inputs because I'm pretty sure there's only one defined in that? Though honestly this seems like a bug in the CLI.

Some extra info:

CLI version: 1.27.0

If it matters, I am running this through bun, on Windows 11 Power Shell.

mkahvi commented 1 hour ago

Seems like it works fine if I remove the --targets ">= 0.25%" part, but how do I then define the targets?