Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

1.6.0 ignores cli arguments

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
cli

Research direction

Reproduce the issue with the lessc command and the versions listed in package.json, then trace how the plugin receives and forwards the --clean-css arguments. Done means the supplied options affect compression so the output retains only one /*! comment, matching the expected CSS.

Written by the indexing model from the issue text.

Description

When command line arguments are provided, they no longer have any impact on the outcome.

Given file.less:

/*! hello */
/*! world */
foo { bar: 1 }

and compiled using:

lessc file.less --clean-css="--s1 --advanced --compatibility=ie8" file.css

Expected outcome:

/*! hello */foo{bar:1}

Actual outcome:

/*! hello *//*! world */foo{bar:1}

Context

package.json:

{
  "dependencies": {
    "less": "^4.2.0",
    "less-plugin-clean-css": "^1.6.0"
  }
}
clean-css: 5.3.3
less-plugin-clean-css: 1.6.0
less: 4.2.0
Dominant language
JavaScript
Stars
193
Forks
41
Avg merge
7h 43m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from less/less-plugin-clean-css

All issues in less/less-plugin-clean-css

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.