I will take another look. Just first off the first thing I thought was ok
this age needs these 5 js scripts, other page needs 2, 15 pages need a
different 6, all and all my site has close to 1000 views and 50% have a
combination of different required scripts so just though ok which confing
name do I use for this page? Just seemed it might be a bit hard to remember.

 

But I will dig into the link you sent and give it another go.

 

Thanks

 

Dave

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of mark_story
Sent: Sunday, July 15, 2012 10:30 AM
To: cake-php@googlegroups.com
Subject: Re: CSS / JS Compression

 

I've found overtime that having explicit build files makes life much easier
in the long run.  AssetCompress does have support for anonymous builds as
well

 

https://github.com/markstory/asset_compress/wiki/Helper-usage

 

-Mark

On Saturday, 14 July 2012 21:30:59 UTC-4, advantage+ wrote:

Hello Mark, 

 

I did see the one you wrote but having to define the specific sets of
different css / js files did not seem like the option I was looking for in a
separate ini file. I want to be able to say ok let me try using colorbox.js
or lightbox.js and add that directly in the view rather than define
different sets of js / css in a remote file.

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of mark_story
Sent: Saturday, July 14, 2012 10:58 PM
To: cake-php@googlegroups.com
Subject: Re: CSS / JS Compression

 

I wrote one, its on github.

 

http://github.com/markstory/asset_compress.

 

It affords the ability to concatenate and minify files. It also allows you
to integrate preprocessors like less, sass and coffee-script into your
projects.

 

-Mark

On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+ wrote:

I know in older versions of cake there were many compression / combine
plugins that would take the defined css /js for the view and compress /
combine / minimize so you ended up with 1 js and 1 css file. Is there
anything like that for 2.x?

 

I liked the way I defined what I needed in each view specifically..

 

I had used Compressor plugin. And in the view simply dropped in

 

<?php $this->Compressor->add_libs( 'js', array('jquery.form',
'jquery.blockUI', 'jquery-ui-1.8.6.custom.min') );?>

 

Anyone fine anything similar?

 

Thanks all.

-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help
others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to