kangax / kangax/html-minifier

feature request: allow multiple file-extensions in CLI

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

Description

I'm using html-minifier to minify all the .html and .json files (in my case they include some html markup) in a directory.
Right now it doesn't seem to be possible to give multiple file extensions via `--file-ext` so I have to call `html-minifier` at least twice.
It would be great to be able to either specify allowed file extensions in the config file or to allow specifying several file extensions vie CLI.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the CLI handling for `--file-ext` and the configuration-file option parsing. Verify how a single extension is currently accepted, then ensure multiple extensions can be supplied through the CLI or configuration and confirm that both `.html` and `.json` files are processed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.