1

I have about 20 CSS files loading on my page, and I am looking for a tool to minify my CSS and JavaScript. I really like SquishIt, but it doesn't seem to handle css that is loaded via @import url. Since quite a few of my CSS files are loaded via @import, the output is not correct.

Is there a fix for this, or can someone recommended another tool that properly handles CSS imported via @import?

MillinMo
  • 395
  • 1
  • 7
  • 21

2 Answers2

2

Did you try calling the .ProcessImports method on css bundle setup? I think it does what you want, see test case CanRenderCssFileWithImportStatement() in this file

AlexCuse
  • 18,008
  • 5
  • 42
  • 51