-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels