Combres combines JS and CSS files, but does not minimize

Hi I just added Combres to my ASP.NET MVC project and it combines CSS files into one CSS and JS files into one JS file, but for some reason it does it without any changes.

any idea why? (note, I just added yui minifier, it does not compress my file with it, ours with it ...) here is my combres.xml:

<?xml version="1.0" encoding="utf-8" ?>
<combres xmlns='urn:combres'>
  <cssMinifiers>
    <minifier name="yui" type="Combres.Minifiers.YuiCssMinifier, Combres">
      <param name="CssCompressionType" type="string" value="StockYuiCompressor" />
      <param name="ColumnWidth" type="int" value="-1" />
    </minifier>
  </cssMinifiers>
  <resourceSets url="~/combres.axd" defaultDuration="30"
                                defaultVersion="auto"
                                defaultDebugEnabled="auto" >

    <resourceSet name="siteCss" type="css" minifierRef="yui">
      <resource path="~/Content/main.css" />
      <resource path="~/Content/css/superfish.css" />
      <resource path="~/Content/css/superfish-rtl.css" />
      <resource path="~/Content/prettyPhoto/css/prettyPhoto.css" />
    </resourceSet>

    <resourceSet name="siteJs" type="js">
      <resource path="~/Content/js/jquery-1.4.2.min.js" />
      <resource path="~/Content/js/superfish.js" />
      <resource path="~/Content/prettyPhoto/js/jquery.prettyPhoto.js" />
    </resourceSet>

    <resourceSet name="adminCss" type="css" minifierRef="yui">
      <resource path="~/Content/Site.css" />
      <resource path="~/Content/CKEditor/_samples/sample.css" />
      <resource path="~/Content/eggplantTheme/jquery-ui-1.8.2.custom.css" />
      <resource path="~/Content/TreeView/jquery.treeview.css" />     
    </resourceSet>

    <resourceSet name="adminJs" type="js">
      <resource path="~/Content/js/jquery-1.4.2.min.js" />
      <resource path="~/Content/js/jquery-ui-1.8.2.custom.min.js" />
      <resource path="~/Scripts/general2.js" />
      <resource path="~/Content/CKEditor/ckeditor.js" />
      <resource path="~/Content/CKEditor/_samples/sample.js" />
      <resource path="~/Content/CKEditor/lang/_languages.js" />
      <resource path="~/Content/TreeView/jquery.treeview.min.js" />
    </resourceSet>

  </resourceSets>
</combres>
+3
source share
2 answers

defaultDebugEnabled auto, debug web.config. ( web.config), . defaultDebugEnabled false, ASP.NET.

" " .

+8

Source: https://habr.com/ru/post/1776765/


All Articles