PDA

View Full Version : How to minify HTML/CSS in DW11.5?


deko
06-29-2011, 05:03 AM
I'm new to DW11.5 (CS5.5) and have heard rumors that there is built-in functionality to minify HTML and CSS. Is this true? Where are these tools?

I see there is a Javascript Minify (http://www.dwbooster.com/miscellaneous/javascript-minify) extension available for $9.99, but I already have a tool for that.

I realize that I'll be lucky to get 5% size reduction on HTML files (hey, it's something), but I want to comment the heck out of my pages and maintain those as the 'debug' versions, so to speak. I don't want my comments on production pages.

I found an online HTML Minifier (http://www.willpeavy.com/minifier/) but I was hoping for something built into DW...

deko
06-30-2011, 04:25 AM
I'm wondering if a saved Find/Replace query (*.dwr) with the right regex would do it. I'll give it a shot next time I have insomnia.

DW12 should have a Commands > Minify menu selection with a dialog to minify HTML, CSS, or JavaScript; something similar to the the "Clean Up HTML" dialog.