terser / html-minifier-terser

actively maintained fork of html-minifier - minify HTML, CSS and JS code using terser - supports ES6 code
https://terser.org/html-minifier-terser
MIT License
376 stars 30 forks source link

Progress indicator for input dir #96

Open gauntface opened 2 years ago

gauntface commented 2 years ago

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.

sibiraj-s commented 2 years ago

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. 🤔

DanielRuf commented 2 years ago

which can be done with few lines of code.

Less dependencies is better. An option makes sense.