parcel-bundler / parcel-bundler/lightningcss

Single input errors with claim of multiple inputs

Open
#844 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pending triage
Dominant language
Rust
Stars
7.7k
Forks
302
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the documented lightningcss command with version 1.27.0, particularly on the reported Windows PowerShell and Bun setup. Trace how the CLI parses the positional CSS input and --output-file, then verify that a single input no longer triggers the multiple-input error and add regression coverage if the project’s test structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.