I have just started to pull in https://github.com/jlong/sass-twitter-bootstrap in to my project and am adding scss files to a bundle in Global.asax.cs as per the below snippet (from Application_Start()):
var sass = new Bundle("~/app.css", new SassTransform());
sass.AddFile("~/Content/sass/bootstrap.scss");
BundleTable.Bundles.Add(sass);
In my layout I then have:
@Html.RenderBundle("~/app.css")
This is all working but it is taking about 55 seconds on first load of the page.
Is this the correct usage and, if so, have you any ideas on ways to improve performance? Maybe a pre-compile option that occurs on Application_Start and then the actual bundle uses these pre-compiled files or something?
Hopefully I'm just missing a step as I really like this approach to using SASS and CoffeeScript.
I have just started to pull in https://github.com/jlong/sass-twitter-bootstrap in to my project and am adding scss files to a bundle in Global.asax.cs as per the below snippet (from Application_Start()):
var sass = new Bundle("~/app.css", new SassTransform()); sass.AddFile("~/Content/sass/bootstrap.scss"); BundleTable.Bundles.Add(sass);
In my layout I then have: @Html.RenderBundle("~/app.css")
This is all working but it is taking about 55 seconds on first load of the page.
Is this the correct usage and, if so, have you any ideas on ways to improve performance? Maybe a pre-compile option that occurs on Application_Start and then the actual bundle uses these pre-compiled files or something?
Hopefully I'm just missing a step as I really like this approach to using SASS and CoffeeScript.