Skip to content

Instantly share code, notes, and snippets.

@revelt
Created May 26, 2019 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save revelt/24ca0837cb31bab598517f4a4ea038f5 to your computer and use it in GitHub Desktop.
Save revelt/24ca0837cb31bab598517f4a4ea038f5 to your computer and use it in GitHub Desktop.
https://htmlcompressor.com/compressor/ will break upon this code (Nunjucks in head CSS, unclosed style tag), but https://htmlcrush.com will minify all right
<html>
<style>
{% if something %}
.z {
display: block;
}
{% endif %}
<body>
<table width="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
zzz
</td>
</tr>
</table>
</body>
</html>
@revelt
Copy link
Author

revelt commented May 26, 2019

Mixed sources is the biggest challenge of all parsing minifiers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment