Ejemplo n.º 1
0
 /// <inheritdoc cref="IResourceMinifier.Minify" />
 public string Minify(Settings settings, ResourceSet resourceSet, string combinedContent)
 {
     var level = (ClosureCodeRequest.CompilationLevel)CompilationLevel.ConvertToType(
         typeof(ClosureCodeRequest.CompilationLevel), 
         ClosureCodeRequest.CompilationLevel.SIMPLE_OPTIMIZATIONS);
     var request = new ClosureCodeRequest(ApiUrl, level, combinedContent);
     return request.GetCode();
 }
Ejemplo n.º 2
0
        /// <inheritdoc cref="IResourceMinifier.Minify" />
        public string Minify(Settings settings, ResourceSet resourceSet, string combinedContent)
        {
            var level = (ClosureCodeRequest.CompilationLevel)CompilationLevel.ConvertToType(
                typeof(ClosureCodeRequest.CompilationLevel),
                ClosureCodeRequest.CompilationLevel.SIMPLE_OPTIMIZATIONS);
            var request = new ClosureCodeRequest(ApiUrl, level, combinedContent);

            return(request.GetCode());
        }