I have gsp view files wherein tags are formatted for readability with whitespaces. I am expected to remove those so that the rendered html file is compact. So, is there a way in grails using plugin or any other means that I can tell grails to remove the whitespaces/newlines between tags and generate a compact view? I dont want to remove them from gsp file itself but only from the html file rendered by grails.
If the goal is to go easy on network transfer, enable the Spring Boot compression (gzip) in application.yml
server: compression: enabled: true mime-types: application/json,application/xml,text/html,text/xml,text/plain,text/css,application/javascript
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With