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;
        }
Пример #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);
        }