Bundle some CSS:
<%= Bundle.Css() .AddCss("~/css/jquery-ui-1.8rc3.css") .AddCss("~/css/CodeThinked.css") .RenderCss("~/css/combined.css") %>
CSS also has support for .less now. Any css file that ends in .less will be run through the .less compiler:
<%= Bundle.Css() .AddCss("~/css/testdotless.css.less") .RenderCss("~/css/combined.css") %>
How To Use Bundler
So, how do you get it working? Well, go to GitHub and download the beta from the downloads page. Then, all you need to do is reference the Bundler.Framework.dll from your website. Then just throw the code in that I provided above. You will just put the files in the order you want them in, and they will be minified or compressed and then combined into the an output file and written to disk where you specify. Once a file is written to disk, it is then cached and fed back over and over. The output will look like this:
Where Do We Go From Here
Loved the article? Hated it? Didn’t even read it?
We’d love to hear from you.