Skip to content

Instantly share code, notes, and snippets.

@Daniel15
Last active December 17, 2015 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Daniel15/5632859 to your computer and use it in GitHub Desktop.
Save Daniel15/5632859 to your computer and use it in GitHub Desktop.
Load HTML5 Shim with Cassette
// HTML5 shim needs to be separate as only IE needs it
bundles.AddUrlWithAlias<ScriptBundle>("//html5shim.googlecode.com/svn/trunk/html5.js", "_js/html5shim", bundle =>
{
bundle.PageLocation = "head";
// Cast to ScriptBundle is a hack until https://github.com/andrewdavey/cassette/pull/384 is fixed
((ScriptBundle)bundle).Condition = "lt IE 9";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment