Пример #1
0
        string YUI_CSS(string filesource, ConfigSettings.YUICompressionSettings.CSS CssSettings)
        {
            try
            {
                var csscompressor = new CssCompressor();
                csscompressor.CompressionType   = CssSettings.CompressionType;
                csscompressor.LineBreakPosition = CssSettings.LineBreakPosition;
                csscompressor.RemoveComments    = CssSettings.RemoveComments;

                return(csscompressor.Compress(filesource));
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
                return(filesource);
            }
        }
Пример #2
0
 internal BundleItFile(string debugrelativepath, string minifiedrelativepath, bool IsCDN, ConfigSettings.YUICompressionSettings.CSS YuiCssSettings)
 {
     this.debugrelativepath    = debugrelativepath;
     this.minifiedrelativepath = minifiedrelativepath;
     this.IsCDN          = IsCDN;
     this.YuiCssSettings = YuiCssSettings;
 }
Пример #3
0
 public BundleItFile(string relativepath, ConfigSettings.YUICompressionSettings.CSS YuiCssSettings) : this(relativepath, string.Empty, false, YuiCssSettings)
 {
 }