We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Zola version: 0.19.2
Minifying the HTML should generate right JavaScript.
Minifying the HTML generated broken javascript.
Here is an example, the following HTML is minimized to:
<script> document.addEventListener("DOMContentLoaded", () => renderMathInElement(document.body, { delimiters: [ { left: "$$", right: "$$", display: true }, { left: "$", right: "$", display: false }, ], throwOnError: false, }), ); </script>
<script>document.addEventListener(`DOMContentLoaded`,()=>renderMathInElement(document.body,{delimiters:[{left:a,right:a,display:!0},{left:b,right:b,display:!1}],throwOnError:!1}))</script>
This is an error of minify-html, maybe we should:
zola/components/site/src/minify.rs
Line 8 in 01c5b4d
The text was updated successfully, but these errors were encountered:
I guess wilsonzlin/minify-html#197 is related. We should probably not minify JS then
Sorry, something went wrong.
Yes, in particular minify-html seems to be poorly maintained. We can hardly expect a new version of it in the short term.
No branches or pull requests
Bug Report
Environment
Zola version: 0.19.2
Expected Behavior
Minifying the HTML should generate right JavaScript.
Current Behavior
Minifying the HTML generated broken javascript.
Step to reproduce
Here is an example, the following HTML is minimized to:
This is an error of minify-html, maybe we should:
zola/components/site/src/minify.rs
Line 8 in 01c5b4d
The text was updated successfully, but these errors were encountered: