johndwells / Minimee

Minimize & combine your CSS and JS files. Minify your HTML. Because size (still) DOES matter.

Home Page:http://johndwells.github.com/Minimee

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using minify_html on its own

opened this issue · comments

Hi John,

I've just been giving Minimee 2.0.1 a try. I want it to minify my HTML, and that's it.

I've added the config array and have the minify_html option set to yes, but when I reload my web page, nothing happens.

I've found that if I use the {exp:minimee:css} tag around a CSS file (even though I don't want to minify any CSS), my HTML minification does then work (even when minify_css is set to no).

So my questions are, should the HTML minification be working without me using the {exp:minimee:css} workaround above? Or should I be using another minimee tag to get the HTML minifcation to work?

I'm pretty new to using this so I'm probably just doing something wrong or missing something from the docs, but I thought I'd post here to double-check.

Thanks,

Stephen

Hi Stephen,

Actually, I need to document that a bit better.

There is a hidden tag available, {exp:minimee:html}, which if you place somewhere within your template, should trigger Minimee to compress your HTML.

This tag is available explicitly for your scenario - when you're configuring MInimee via config array, rather than installing the Extension, and are not using any other Minimee tags.

Give that a go, but let me know if you still have trouble.

Cheers!
John

Hi John,

I've just tried that tag and it works great, so thanks for this. :-)

Thanks,

Stephen