Example #1
0
 public string DoMinify(JsMin minifier, FileInfo input)
 {
     using (var reader = File.OpenText(input.FullName))
     {
         var result = minifier.Minify(reader);
         _output.WriteLine("Minified: " + result);
         return result;
     }
 }
Example #2
0
 public string DoMinify(JsMin minifier, FileInfo input)
 {
     using (var reader = File.OpenText(input.FullName))
     {
         var result = minifier.Minify(reader);
         _output.WriteLine("Minified: " + result);
         return(result);
     }
 }
Example #3
0
 public string DoMinify(JsMin minifier, string input)
 {
     using (var reader = new StringReader(input))
     {
         var result = minifier.Minify(reader);
         _output.WriteLine("Minified: " + result);
         return result;
     }
 }
Example #4
0
 public string DoMinify(JsMin minifier, string input)
 {
     using (var reader = new StringReader(input))
     {
         var result = minifier.Minify(reader);
         _output.WriteLine("Minified: " + result);
         return(result);
     }
 }