Answers.Body: <p>There are <a href="https://github.com/johndwells/craft.minimee">several</a> <a href="http://straightupcraft.com/craft-plugins/compressor">plugins</a> that will <a href="http://straightupcraft.com/craft-plugins/automin">minify/compress</a> CSS/JS for you.</p>
  
  <p>But for HTML, maybe you're better off just <a href="http://www.feedthebot.com/pagespeed/enable-compression.html">enabling gzip compression</a> on your web server for all output.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-09-01T02:04:36.673Z
Answers.LastActivityDate: 2014-09-01T02:04:36.673Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>Here's a plugin I made that does just that:</p>
  
  <p><a href="https://github.com/khalwat/minify">https://github.com/khalwat/minify</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-21T10:01:44.907Z
Answers.LastActivityDate: 2015-11-21T10:01:44.907Z
Answers.UserDisplayName: andrew.welch
Body: <p>Has anyone successfully minified Craft's HTML templates?</p>
  
  <p>Had setup a Grunt task but it had parse issues with the twig template tags. I since found that the Grunt task "HTMLmin" is only for the purposes of minifying "vanilla" HTML.</p>
  
  <p>Is this even possible?</p>
  
  <p>Any help or direction is greatly appreciated.</p>
  
Tags: <templating>
Title: Minifying Craft HTML templates
ThreadText: # Minifying Craft HTML templates
  
  (Asked by: username_0 on 2014-08-31)
  
  Has anyone successfully minified Craft's HTML templates?
  
  Had setup a Grunt task but it had parse issues with the twig template tags. I since found that the Grunt task "HTMLmin" is only for the purposes of minifying "vanilla" HTML.
  
  Is this even possible?
  
  Any help or direction is greatly appreciated.
  
  **Tags:** templating
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-11-21. Score: 8 | Accepted answer
  
  Here's a plugin I made that does just that:
  
  <https://github.com/khalwat/minify>
  
  
  ---
  
  ### Answer by username_1 on 2014-09-01. Score: 6
  
  There are [several](https://github.com/johndwells/craft.minimee) [plugins](http://straightupcraft.com/craft-plugins/compressor) that will [minify/compress](http://straightupcraft.com/craft-plugins/automin) CSS/JS for you.
  
  But for HTML, maybe you're better off just [enabling gzip compression](http://www.feedthebot.com/pagespeed/enable-compression.html) on your web server for all output.
  
  
  ---
  
  