This is the main discussion thread for Extension ClientScriptMinify
The extension is available at, http://www.yiiframew...ntscriptminify/
Feel free to post your comments.
Page 1 of 1
[EXTENSION] ClientScriptMinify - Minify JavaScript and CSS stylesheets for views
#2
Posted 11 March 2010 - 02:09 AM
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.
#3
Posted 02 February 2011 - 12:09 PM
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
happen many times with Yii resources like jquery widgets, disabling this will work, otherwise i get no style because errors
any solution? thanks
#4
Posted 21 April 2011 - 03:21 AM
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
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
#5
Posted 06 May 2011 - 11:57 AM
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?
site.com/minify/8728809c08d644ad982614819909e314.css - we get 404 error.
site.com:8080/minify/8728809c08d644ad982614819909e314.css - ok.
How to config nginx or extension?
#6
Posted 03 November 2011 - 02:50 AM
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
}
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;
}
...
...
...
...
---------------------------------
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
}
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;
}
...
...
...
...
Share this topic:
Page 1 of 1

Help












