mash up files questions?

Jul 24, 2010 at 12:54 PM

Hi,

 

just been testing Chirpy and it works great! but on the mash up files it doesn't combine the 2 tags i.e. I get this

 

body{border-bottom:1px;}
body{background-color:White;}

when it would be better like this

body{
border-bottom:1px;
background-color:White;}

Here is my simple config file.

 

<root
     <FileGroup Name="group1.css"
        <File Path="login.min.css" /> 
        <File Path="generic.min.css" /> 
    </FileGroup
</root

 

Developer
Jul 24, 2010 at 2:56 PM

Presently "filegroup" only merge file after minifies.

 

Snippet

 allFileText.Append(text);
Jul 24, 2010 at 2:58 PM

Thanks for the reply,

 

So are you saying that currently its not supported but maybe in the future?

 

thanks again

Coordinator
Jul 25, 2010 at 4:25 AM
Hey madrid john, Yeah, hopefully it should be supported soon. Right now, we're working on adding some extra config abilities. If you have any other suggestions related to the config file, please let us know! Or, if you're feeling super-supportive, you can always submit an update. :) Thanks again! Cheers, Evan
Jul 25, 2010 at 5:28 AM

Thanks for the reply.. I just love this piece of software!!! 

 

Ermm with regards to config, i notice with the JS example there is a property called Minify="false"/> 

 

So currently i am using the minify versions ALREADY of the CSS files, so the property minify in the config isn't needed ?

 

I presume i am doing it correct, as i am pointing my config to the MIN versions of the css and not PRE MIN

 

here is my config

<root
     <FileGroup Name="stylesheet-final.css">
       <File Path="generic.min.css" />
       <File Path="login.min.css" /> 
    </FileGroup
</root

 

here is an example of one of your config files, notice on Folder Path.

Is Folder Path also supported for .CSS files? and what about the minify=False attribute

 

<root> 
    <FileGroup Name="main.scripts.js"> 
        <Folder Path="/" Type="*.min.js" Minify="false"/> 
        <File Path="MicrosoftAjax.js" /> 
    </FileGroup> 
</root> 

Best regards

And really great utlity!! Love it! THanks a bunch!

Developer
Jul 25, 2010 at 1:49 PM

By default all css minifier don't merge tag.

- YUI compressor all compession type (http://developer.yahoo.com/yui/compressor/#work)

- Ms Ajax compressor (http://www.asp.net/ajaxLibrary/AjaxMinCssMin.ashx)

 

Coordinator
Jul 27, 2010 at 1:48 AM
Hey John, Glad you like it. And thanks for the support, as we're still ironing out some of the finer points. As for your question--even if a file has ".min" in its path name, you still have to specify that you don't want the config file to re-minify the file (set Minify="false"). And, stylesheet FileGroups work exactly the same as Javascript FileGroups (or they should), so you can definitely use all of the same attributes. In the next release, we're going to be making some pretty big changes to the way that the config file works (we hear a lot of folks asking for a lot more flexibility). So, stay tuned. And, if you have any other issues/suggestions, please let us hear 'em! Cheers, Evan
Jul 28, 2010 at 12:49 PM

Thanks everyone for answering my questions,

 

I will keep my eye on future releases, although from what i have seen currently i like it so i am going ahead and going to use it...

 

Best regards