[EXTENSION] ClientScriptMinify - Minify JavaScript and CSS stylesheets for views

This is the main discussion thread for Extension ClientScriptMinify

The extension is available at, http://www.yiiframew…ntscriptminify/

Feel free to post your comments.

Are there any examples on how to configure groups of css or js files using this extension? The underlying Minify library supports it, I’m just not clear about where to define these groups so that ClientScriptMinify would find them. Thanks in advance for any help.

im using that, but when is necessary to load many css and js it not load correctly because css or js errors

happen many times with Yii resources like jquery widgets, disabling this will work, otherwise i get no style because errors

any solution? thanks

Hi all,

you need to change the version of Minify for correct working on php 5.3.x

Latest version can be found here code.google.com/p/minify/downloads/list

There are problem with using extenstion with nginx.

site.com/minify/8728809c08d644ad982614819909e314.css - we get 404 error.

site.com:8080/minify/8728809c08d644ad982614819909e314.css - ok.

How to config nginx or extension?

My nginx site config

server {

    listen  ****:80  ;

    server_name ****;

root /youpath/ ;

location ~* ^.+\.(jpg|flv|swf|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ {

root /youpath/ ;

access_log off;

expires 2d;

open_file_cache max=2000 inactive=600s;

open_file_cache_valid 2000s;

open_file_cache_min_uses 2;

open_file_cache_errors on;

add_header Cache-Control public;

error_page 404 = @fallback; # if 404 then goto apache


[b]location @fallback {

proxy_pass apache2serwer ;

proxy_set_header Host $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Real-IP $remote_addr;

proxy_send_timeout 30;

proxy_read_timeout 30;

proxy_set_header Connection close;

proxy_pass_header Content-Type;

proxy_pass_header Content-Disposition;

proxy_pass_header Content-Length;