Extension, Plugin

Archived
Forum
(read-only)

Minimee

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From John D. Wells

     

Unable To Compress EE2 CSS Files

Support Request

railhead
railhead

Hey there

Just trying out Minimee, and I can’t seem to get it to work with my EE templates. I have a header template, and part of it calls the CSS:

<link rel="stylesheet" type="text/css" media="screen" href="{stylesheet={my_template_group}/site_css}" /> 

When I wrap that code between {exp:minimee:css} and {/exp:minimee:css}, my site no longer uses the CSS. I then tried the URL like this:

<link rel="stylesheet" type="text/css" media="screen" href="http://mywebsite/index.php?css=site/site_css" /> 

Same result.

Any help would be much appreciated!

John D Wells
# 1
Developer
John D Wells

Hi railhead,

In order, I’d try the following:

- turn on EE’s template debugging, and then visit your front-end to read the output - Minimee will report a lot of debugging info, and any errors it may encounter.

- try using file_get_contents() - instead of cURL - for remote files.  Minimee fetches {stylesheet=} assets as if they were remote files, and on occasion I’ve seen hosting environments that dislike that.

- double-check Minimee’s settings, unsetting any “advanced” settings unless you are sure it’s necessary.

When you describe that the site “no longer uses the CSS”, what exactly does that mean?  Is there a CSS link in your markup?

Cheers,
John