Is it possible to minify html #2213
Closed
andriiradkevych
started this conversation in
General
Replies: 1 comment 8 replies
-
Typically HTML minifiers only minify HTML and not other languages like CSS and JavaScript. Fresh already minifies the HTML, but doesn't minify inline stylesheets or scripts at the moment. You can do minify those sections manually by calling into esbuild's transform API before passing it to the JSX. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I return html and there can be added some
<script>code here</script>
and<style>code here </style>
, can I compress it and minify somehow ? Or I have to find my own solution ? Maybe you can give advice of library which I can use indeno
for minifycss
andjs
stringsExample of returned style , want it to be compressed in response . Same with
<script>
Beta Was this translation helpful? Give feedback.
All reactions