jetheredge/SquishIt — Issue #124: Css Render output isn't changing if one of the files are changed
Author: amirton
Created: 2011-12-12 22:16:21+00:00
State: open

Hi. My project has a situation in which the filename of the css used can be changed during runtime. I'm calling the render like this:

Bundle.Css()
.Add("~/css/geral.css")
.Add("~/css/" + cssFilename)
.Render("~/css/combined_#.css");

I expected that when the value of the cssFilename variable changed, SquishIt would bundle a new different file and the Render method would output "combined_newHashValue.css", however, even changing the value of the variable, it still renders "combined_oldHashValue.css". (e.g.: cssFilename values could be "Blue.css" or "Green.css", both files with slightly different contents, but the output of the render method is the same in both calls)

I don't know if this can help, but the contents of the different css files I use are very similar, indeed only the values of some colors are different from one file to other.