minify icon indicating copy to clipboard operation
minify copied to clipboard

Update js.js

Open emanuelVINI01 opened this issue 4 years ago • 2 comments

AssertionError in empty files

Step by Step to error

echo > emptyfile.js
npm i minify
npx minify emptyfile.js > emptyfile.min.js

emanuelVINI01 avatar Sep 23 '21 10:09 emanuelVINI01

Could you please tell me what kind of an error do you have? And add test please, so this bug never returns again :)

coderaiser avatar Sep 23 '21 11:09 coderaiser

I think rather than just taking "" as default. This case could be an Error("No content found in the file") This will make it easier to add file type detection (as per #70), as a blank file can not be detected.

What do you think @coderaiser ?

code-forger avatar Sep 24 '21 13:09 code-forger