ASP.NET minimizes and concatenates App_Themes CSS files

Does anyone know of a good technique that minimizes and combines CSS files from the ASP.NET App_Themes folder before including them on the page?

+3
source share
5 answers

I always use StyleManager to combine and minimize my CSS. It uses the .NET YUI Compressor port under the hood and adds the ability to combine style sheets, so it should do exactly what you need from the sounds.

It also adds some nice features, such as CSS constants, tilde resolution (~) in background image images, cache management, etc.

+3

Rejuicer - minifier ASP.NET, : http://rejuice.me

:

  • .
  • Windows Azure
  • , javascript ( ).

( ApplicationStart global.asax.cs) :

OnRequest.ForJs("~/Combined.js")
            .Compact
            .FilesIn("~/Scripts/")
              .Matching("*.js")
            .Configure();
+3

RequestReduce. CSS , javascript. , . ETAG . - IIS . , - CDN. OSS () - Microsoft, Visual Studio.

+2

, - .

+1
source

Take a look at the YUI Compressor .

0
source

Source: https://habr.com/ru/post/1710181/


All Articles