-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix htmlnano tests #2532
Fix htmlnano tests #2532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears this doesn't fix the tests?
Strange, it does locally. |
Yeah seems like it's still failing on windows |
Strange, no newline on windows: |
Windows uses |
Maybe use https://nodejs.org/dist/latest-v10.x/docs/api/os.html#os_os_eol in that case? |
Definitely better and something what I would recommend. But this could fail in some cases but let's try it. |
If you're running Windows, please try that out. But if I remember correctly, the output contained no linebreak at all, it really was the output in #2532 (comment). |
Will do it probably later this week, currently checking some projects and working on a few other CI fixes. |
↪️ Pull Request
The version upgrade in #2506 seems to have changed the output regarding
collapseWhitespace
. Setting that htmlnano option toall
would make current tests pass, but is not always safe (see here)✔️ PR Todo