Search code examples
javascriptsitecoresitecore6assetsdotless

Sitecore Javascript Compression / Minification and LESS Compilation


Currently, I've been trying to put Cassette into our Sitecore project and it's just fallen flat on it's face. I've had dotLess in the project already, but would like a more solid solution for cache-busting while bundling.

I can use Cassette in a normal .Net4 project, but just can't get it to work in our Sitecore project. (Ed) We were unable to get it to actually build any sort of bundles (checked /_cassette) and it wasn't outputting anything to the page. For us, the project isn't built but is instead using CodeFile and I'm not sure if that was part of the problem. In general, we kept getting the No bundle with path 'xxx' exception no matter what we tried. It's a bummer to because I would really wouldn't mind having CoffeeScript weaved into the solution.

Is there a solution that compresses/minifies javascript and can render dotLess files with Sitecore?


Solution

  • We ended up getting SquishIt to work rather easily and without much hassle besides getting the JavaScript files to play nicely together.