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?


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,

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

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...


Please sign in to leave a comment.