Questions tagged [cassette]

Cassette is a .NET asset management library created by Andrew Davey.

Cassette is a .NET asset management library for JavaScript, CoffeeScript, CSS, LESS/SASS, and various HTML template technologies.

Cassette was created and is maintained by Andrew Davey.

For more information, visit http://getcassette.net/.

Installation

Cassette can most easily be installed through its NuGet package.

Install-Package Cassette
54 questions
25
votes
2 answers

Chrome workspaces with fingerprinted assets

Chrome workspaces: let's say I map local CSS files to those served by my local http server. Everything works great and I can modify the files in-browser and upon page refresh my changes persist. We happen to fingerprint our assets so that they are…
Oleg
  • 24,465
  • 8
  • 61
  • 91
8
votes
2 answers

Minification is breaking my AngularJs code

I'm using Cassette which uses the Microsoft Ajax Minifier to minify JS. This minifier renames variables, including variables that have special meaning to Angular, such as $scope and $http. So Cassette breaks my Angular code! How can I prevent this…
David
  • 15,750
  • 22
  • 90
  • 150
5
votes
1 answer

how to exclude fonts from cassette bundling

We're using cassette bundling for our mvc project. We ran into an issue that when we push our site to our dev server, certain font files aren't making their way into cassette.axd. The resulting stylesheet shows a link to the font file in…
geoff swartz
  • 5,437
  • 11
  • 51
  • 75
4
votes
0 answers

cannot use kendo ui with cassette bundles in asp.net mvc

I've created this bundle: bundles.Add("kendo-autocomplete", new string[] { "~/Scripts/Kendo/kendo.core.min.js", "~/Scripts/Kendo/kendo.aspnetmvc.min.js", "~/Scripts/Kendo/kendo.data.min.js", …
4
votes
3 answers

Serving bundled JavaScript with a pure AppHost implementation of ServiceStack

I would like to use ServiceStack as a pure AppHost implementation without using MVC. I want to use it to drive a Single Page App. Serving the SPA's single HTML shell page is straightforward enough and I've found plenty of examples on doing that.…
4
votes
1 answer

Is it possible to deny minify one line (or region) in css file by Microsoft Ajax Minifier?

I started use Cassette library in our project. This library use Microsoft Ajax Minifier by default. I face problems breaking html layout on some pages only in firefox browser. I found that problem is related to CSS3 function calc(). The + and -…
DrunkCoder
  • 8,215
  • 3
  • 19
  • 14
4
votes
1 answer

Cannot find an asset bundle containing the path "~/Public/stylesheets/main.less"

I've tried accessing Cassette's debugging page to see what's what, but all I get is a blank page (Firebug says I'm receiving a 404 header). Don't really know why: www.foobar.com/_cassette ^-----------This is the debugger page for…
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257
3
votes
2 answers

Partial Views and CSS/Javascript

I'm trying to determine the best way to structure my application so that I don't get a lot of javascript splattered all over the place. I have an ASP.NET MVC application with a view which loads a sllooooowwwww partial view using Michael Kennedy's…
3
votes
1 answer

Using the Cassette V2 to compile templates jsRender and KnockoutJS templates

I am moving to version 2 of the Cassette. But I found nothing on the web to help me configure my Cassette to compile HTML templates. Templates Some templates jQuery Templates as:
3
votes
1 answer

Empty content returned for a javascript bundle by cassette asset manager

I had an issue 3 times in the last few weeks with cassette since upgrading to v1.2.0 from v1.1.0. I've now rolled back to v1.1.0 and haven't seen the problem since. I have a website in c# using .NET 4.0 running on IIS7 which has multiple javascript…
3
votes
3 answers

jquery selector does not work on element inside script tag using Cassette

When trying to access data-onload using $("#index").data("onload") I get back 'undefined':