html-minifier-terser icon indicating copy to clipboard operation
html-minifier-terser copied to clipboard

Progress indicator for input dir

Open gauntface opened this issue 4 years ago • 2 comments

Would the project be open to a PR to add a progress bar to the CLI to show progress through the set of HTML files to minify?

Running on a static site can take considerable time and a progress bar would help affirm that work is on-going and the tool hasn't frozen.

gauntface avatar Nov 14 '21 04:11 gauntface

Might be a good addition I guess. can be enabled with --progress options when working with directories.

Do we need to add a npm dependency for that or we can show a simple message like

Minifying ${filename}. {noOfFiles} completed of total ${totalFiles}

which can be done with few lines of code. 🤔

sibiraj-s avatar Nov 19 '21 09:11 sibiraj-s

which can be done with few lines of code.

Less dependencies is better. An option makes sense.

DanielRuf avatar Nov 20 '21 11:11 DanielRuf