kangax / kangax/html-minifier

How to pass `CleanCSS` options via `minifyCSS`?

Open
#1,141 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
577
PR merge metrics
No merged PRs in 30d

Description

I'm trying to pass [Clean CSS](https://github.com/clean-css/clean-css#formatting-options) options via the `minifyCSS` property, according to the [docs](https://github.com/clean-css/clean-css#formatting-options), I should be able to pass:

```js
minifyCSS: {
format: {
semicolonAfterLastProperty: false
}
}
```

But it has not affect. What am I missing?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the minifyCSS property handles the documented Clean CSS format options, then compare that path with the linked Clean CSS formatting-options documentation. Done means the semicolonAfterLastProperty setting changes the generated CSS as expected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.