-
Notifications
You must be signed in to change notification settings - Fork 29
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
minifyJs turns single quotes in handler-attributes into double quotes #41
Comments
This might be fixable by simply specifying |
Sorry, @Kreozot, I still don't know how to fix that without adding too many hacks :-/ You could use the following config to fix your particular case: minifyJs: {
output: { quote_style: 1 },
}, I've added it to the documentation as well. |
And if someone is interested in fixing that bug I've added a failed test. |
The quote style is determined by It is possible for htmlnano to override Update I have opened a PR at |
Which is breaking code, of course.
Here is the case:
<a onclick="myFunc('my string')">
turning into<a onclick="myFunc("my string")">
. When I disable minifyJs option, everything is fine.The text was updated successfully, but these errors were encountered: