I'll start comparing the merged CSS to the unmerged and see if I can
track down the difference, and then the source of the problem. I'll
post here to let you know what I find out.

Good tip on the build script. Also made me realize I can just
create .gitignore files in the 'packed' folders.


On Nov 20, 11:13 pm, MattC <[EMAIL PROTECTED]> wrote:
> Really weird that just merging the files would mess things up.  I
> guess now it'll be easier to compare and see what the problem is.  If
> it's something w/ the helper let me know.
>
> In a production environment I generally clear our the packed folder as
> part of the build script.  There is also a var $checkTS, which
> defaults to false.  If you set that to true it will check the
> timestamps of all the pieces and if one of them is newer then the
> packed file it will re-build the whole thing.
>
> -Matthttp://www.pseudocoder.com
>
> On Nov 20, 10:34 pm, RyOnLife <[EMAIL PROTECTED]> wrote:
>
> > Thanks Matt...
>
> > 1.) No.
>
> > 2.) I set it to default (no compression) with the same results.
>
> > 3.) Cool. I didn't realize until now that your helper actually
> > combines the files into one and CSS Tidy just does the compression. I
> > just assumed CSS Tidy did both. Bad news is... even without CSS Tidy,
> > the pages still aren't rendering right. Can't imagine what would be
> > causing a difference in distinct CSS files vs. all selectors in the
> > same order, but in a single file. Guess I'll just keep digging.
>
> > One usage question while I've got your attention: The helper only
> > seems to generate new compressed CSS/JS when .css/.js files are
> > linked. If I edit an existing file and want to rebuild the compressed
> > version, I've just been clearing out the 'packed' folder. Is that the
> > best approach?
>
> > On Nov 20, 10:17 pm, MattC <[EMAIL PROTECTED]> wrote:
>
> > > Hey Ryan,
> > > A couple suggestions:
> > > 1) Are you using CSS expressions?  I know CSS tidy has issues with
> > > them.  I was able to work around in some cases by changing the
> > > expression.
> > > 2) You can try setting the $cssCompression var to something other than
> > > "high_compression".  Not sure if this will make a difference since
> > > you've already tried a bunch of other settings.
> > > 3) You can take out lines 168-174.  That will get rid of the code that
> > > calls the CSS tidy.
>
> > > -Matthttp://www.pseudocoder.com
>
> > > On Nov 20, 10:00 pm, RyOnLife <[EMAIL PROTECTED]> wrote:
>
> > > > I am using the AssetHelper from Matt/pseudocoder.com. Great helper for
> > > > CSS and JS compression, but CSS Tidy is causing me fits...
>
> > > > Due to all of its compression measures, in some cases it's messing up
> > > > my pages by combining or re-arranging selectors, etc. Even with the
> > > > options shown below (I just edited the class directly), pages with the
> > > > compressed CSS render differently (messed up) than the uncompressed
> > > > CSS.
>
> > > > Any way to configure the helper and/or CSS Tidy to just combine all of
> > > > my CSS files into one, and do nothing more than that?
>
> > > > $this->settings['remove_bslash'] = false;
> > > > $this->settings['compress_colors'] = false;
> > > > $this->settings['compress_font-weight'] = false;
> > > > $this->settings['lowercase_s'] = false;
> > > > $this->settings['optimise_shorthands'] = 0;
> > > > $this->settings['remove_last_;'] = false;
> > > > $this->settings['case_properties'] = 0;
> > > > $this->settings['sort_properties'] = false;
> > > > $this->settings['sort_selectors'] = false;
> > > > $this->settings['merge_selectors'] = 0;
> > > > $this->settings['discard_invalid_properties'] = false;
> > > > $this->settings['css_level'] = 'CSS2.1';
> > > > $this->settings['preserve_css'] = true;
> > > > $this->settings['timestamp'] = false;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to