-
Notifications
You must be signed in to change notification settings - Fork 27
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
Invalid arg type error with --input-dir / --output-dir options #74
Comments
Can you provide a PR and test it with different test cases? That would be great. See also 4d03536 |
@DanielRuf I just found out that the simpler command line |
Yes, see this line where no async / await is used: https://github.com/terser/html-minifier-terser/blob/v6.0.1/cli.js#L240 And compare it to this: https://github.com/terser/html-minifier-terser/blob/v6.0.1/cli.js#L281 |
We definitely need tests for this cli file. |
Definitely, see also #33 Personally I am not investing much time in opensource anymore due to personal reasons so if anyone wants to help that would be great. |
Created PR #75 |
html-minifier-terser v6.0.2 has been released and the issue in the CLI should be fixed now. Thanks for reporting the issue and thanks for the PR to fix this. Not sure what the best solution is to test the CLI. |
To start with, we don't need to test the entire cli, we can split the processing part into separate modules/files and test them alone. |
html-minifier-terser version: 6.0.1
OS: Ubuntu 21.04
On node 14.0.0 and above if I use the following command:
I get:
On node 13.14.0 the following command generates no error:
but the content of the minified html file is:
Everything was working fine with html-minifier-terser v5.1.1
The text was updated successfully, but these errors were encountered: