ASP.NET Scss bundle transformations really slow

371 views Asked by At

I used to use less, whiched using V8 to render the style sheets, but now I am using scss, and it is using IronRuby to compile the style sheets.

With that said, my startup time in my application is SLOWW!

With the debugger, I see where the pause is happening.

@Styles.Render("~/bundles/styles")

Is there anything I can do to speed this up? Should I just use web essentials and reference the compiled css?

2

There are 2 answers

0
NGPixel On

When debugging, all bundle transformations are ignored. While bundling should have no performance impact, minimization can be problematic depending on the code. I usually avoid the minimization function of ASP.net.

You should either pre-compile your scss files using Web Essentials or another plugin, and then use the built-in bundling to wrap them together. Also, make sure to define your bundle manually (define each file to include).

Bundles are cached for 1 year once created so while the first page load can be slow, all subsequent calls should be quite fast.

0
Andrey Taritsyn On

In Bundle Transformer 1.9.81 due to the transition to libSass has been significantly increased performance of BundleTransformer.SassAndScss module.