Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: html-minifier-terser stuck on empty file #193

Open
MalerasMek-Mikael-Lovqvist opened this issue Mar 4, 2025 · 0 comments
Open

[Bug]: html-minifier-terser stuck on empty file #193

MalerasMek-Mikael-Lovqvist opened this issue Mar 4, 2025 · 0 comments

Comments

@MalerasMek-Mikael-Lovqvist

What happened?

If you run html-minifier-terser on an empty file it hangs. I realize that empty input files is not a normal situation but I don't think it should hang there, just produce an empty outfile.

To reproduce

This will hang forever

$ touch some-file.html 
$ html-minifier-terser some-file.html -o /dev/stdout

Caution

Make sure you don't already have content in the test file from testing the working case.

This will work

$ echo hello > some-file.html
$ html-minifier-terser some-file.html -o /dev/stdout

Regards
Mikael Lövqvist

Version

v7.2.0

What browsers are you seeing the problem on?

No response

Link to reproduce

No response

Relevant log output

Willing to submit a PR?

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant