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. |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 indenofor minifycssandjsstringsExample of returned style , want it to be compressed in response . Same with
<script>All reactions