Minify HTML?

Hi all,

I already use the CSS minifier and it works great. Was wondering if there was something the same but for HTML?

Thanks

3 comments
Comment actions Permalink
 

I'd suggest looking at HTMLMinifier - it has CLI and thus can be set up as a file watcher

also it can be configured as Grunt task or Gulp task and executed using Grunt/Gulp console

 

See also https://stackoverflow.com/questions/728260/html-minification, https://stackoverflow.com/questions/5768362/how-to-minify-html

1
Comment actions Permalink

If you want to show HTML files with the same name as nested, right-click on the Project tool Window and choose "File nesting...". Add: Parent file suffix: .html -> Child file suffix: .min.html

0
Comment actions Permalink

Did that - did not work. How can I see the nested html? Why cant you just make a shortcut in the menu "Minify..." its just removing spaces from code...

0

Please sign in to leave a comment.