I have a an ASP.NET MVC application and I presently use SquishIt to help bundle all of my CSS and javascript files into a single element downloaded from the webserver for every hit to my site. I know that recently MVC introduced its own bundler. Has anyone done some comparing between the two of them? Is one better for certain situations vs. the other? Or are they basically the same? With the MVC bundler, does IIS still need write access to the site directory?
Any and all thoughts and comments you may have would be appreciated.
Thanks.
I haven't looked into the details and extensibility points etc as much as @AlexCuse but his general take seems to be mine.
Squishit seems to have the edge.
For me (and I think I MUST be missing the obvious somehow - but I don't have time / inclination to write my own custom IBundleOrderer implementation and can't find the solution I expect in docs / googling)
the MVC / MS offering has one MASSIVE FAIL...
I cant see how I can get it to simply honor my declared order of scripts and css files !
Which totally sucks balls for obvious reasons. (i.e. its utterly screwed up my app - with 20+ little css / jscript bugs all over my large complex app - those frustratingly hard to pin down little display bugs and odd js quirks)
Rick Anderson say's "adding a custom IBundleOrderer implementation, but explicitly adding each file is less error prone." But I can't see how to do the latter - I am explicitly using .Include( for each file. Mainly my order is honoured, but annoyingly not totally - clearly some default rule comes into play and the system decides it knows better than me.
Admittedly there must be a simple answer here - but I can't find it so for me this is a MASSIVE MASSIVE FAIL, and means I am now going to the trouble of reverting back from MS implementation to Squishit which did the job very nicely thank you !
N.B. also had problems with 1. the way its Minifying the js... its introduced bugs I just don't need. I did to be fair have some issues with Squishit but solved fairly easily. 2. the way its minifying the css
I'm reverting to Squishit.