Yii Framework Forum: [EXTENSION] ClientScriptMinify - Minify JavaScript and CSS stylesheets for views - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   unikly 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 21-January 09

Posted 24 March 2009 - 09:05 AM

This is the main discussion thread for Extension ClientScriptMinify

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

Feel free to post your comments.
0

#2 User is offline   awrestuc 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 12-February 10

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.
0

#3 User is offline   sn4k3 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 77
  • Joined: 08-December 10

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
0

#4 User is offline   Ievgen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 21-April 11

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
0

#5 User is offline   wolandino 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 23-November 10

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?
0

#6 User is offline   Zeen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 03-November 11

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;

}

...
...
...
...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users