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

Minimee+LESS integration - "Unable to reduce" issue

johnbacon opened this issue · comments

Since updating Minimee to 2.1.3 (from 2.1.1) I receive the following on Minimee completion:

(0.025716 / 3.84MB) Minimee [INFO]: Headers OK for file: '/css/dev/bootstrap.less'. (0.025808 / 3.84MB) Minimee [INFO]: Creating cache name from '/css/dev/bootstrap.less'. (0.025933 / 3.84MB) Minimee [INFO]: Cache file not found: '0a1cc9d4ff4a16dba5aaecdf72e5988f32b74432.1353460439.css' (0.026145 / 3.91MB) Minimee [INFO]: Fetched contents of '/css/dev/bootstrap.less'. (0.026180 / 3.91MB) Minimee [INFO]: Hook 'minimee_pre_minify_css' has been activated. (0.027202 / 4.14MB) Calling Extension Class/Method: Minimee_less_ext/minimee_pre_minify_css (0.027547 / 4.14MB) Minimee+LESS [INFO]: Running LESS on '/css/dev/bootstrap.less'. (0.761035 / 14.39MB) Minimee [INFO]: Running minification with Minify_CSS. (0.761104 / 14.39MB) Minimee [INFO]: PHP's include_path has been updated. (6.755053 / 14.63MB) Minimee [INFO]: Minification unable to reduce /css/dev/bootstrap.less, so using original content. (6.755612 / 14.54MB) Minimee [INFO]: Cache file '0a1cc9d4ff4a16dba5aaecdf72e5988f32b74432.1353460439.css' was written to /var/www/cache

It appears the CSS minifier is unable to minify the .less file (as you would expect). The raw LESS file is then served back to the browser: http://pastebin.com/UaLvPuCM

Let me know if I can help beyond this point. You probably already know more about how to fix this issue than I do. :-)

We are having the same problem. A quick hack is to update line 948-956 to the following:

Minimee_helper::log('Minification has reduced ' . $filename . ' by ' . $change . '%.', 3);

I'm closing this (old!) issue, as subsequent updates to Minimee & the LESS companion extension resolved this.