Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single input errors with claim of multiple inputs #844

Open
mkahvi opened this issue Oct 23, 2024 · 2 comments
Open

Single input errors with claim of multiple inputs #844

mkahvi opened this issue Oct 23, 2024 · 2 comments

Comments

@mkahvi
Copy link

mkahvi commented Oct 23, 2024

Attempting to run the CLI with slightly modified sample command (as described in the docs):

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
Copy link
Author

mkahvi commented Oct 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@mkahvi and others