Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Woes #1

Open
mattgi opened this issue Apr 25, 2012 · 1 comment
Open

Performance Woes #1

mattgi opened this issue Apr 25, 2012 · 1 comment

Comments

@mattgi
Copy link

mattgi commented Apr 25, 2012

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.

@detaybey
Copy link

Using the SassStyleBundle under RegisterBundles, and it takes forever to compile as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants