public static IMinifier GetMinifier()
        {
            var minifier = new HtmlOptimizerMinifierWrapper();

              var aggressive = ConfigurationManager.AppSettings["html-minifier: Aggressive"];
              var isAggerssive = aggressive == null || aggressive.ToLower() == "true";

              var comments = ConfigurationManager.AppSettings["html-minifier: Comments"];
              var isComments = comments == null || comments.ToLower() == "true";

              minifier.Init(isAggerssive, isComments);
              return minifier;
        }
Exemplo n.º 2
0
        public static IMinifier GetMinifier()
        {
            var minifier = new HtmlOptimizerMinifierWrapper();

            var aggressive   = ConfigurationManager.AppSettings["html-minifier: Aggressive"];
            var isAggerssive = aggressive == null || aggressive.ToLower() == "true";

            var comments   = ConfigurationManager.AppSettings["html-minifier: Comments"];
            var isComments = comments == null || comments.ToLower() == "true";

            minifier.Init(isAggerssive, isComments);
            return(minifier);
        }