2010-11-24 6 views
3

ハイテク を縮小化しない、それがスムーズに1つのJSファイルに1つのCSSにCSSファイルやJSファイルを結合しますが、用何らかの理由でそれは分裂なしにします。CombresはJS&CSSファイルを結合するが、私はちょうど私のASP.NET MVCプロジェクトにCombresを追加しました

任意のアイデアなぜですか?あなたは縮小を有効にする必要が

<?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> 

答えて

-1

: はここに私のcombres.xmlです(。私はYUIのminifierを追加したノート・それは...それ私たちのそれとで自分のファイルを圧縮doesntの)を参照してくださいこの記事を:http://www.codeproject.com/KB/aspnet/combres2.aspx

+0

私は(通常の縮小のために)この記事のすべてのステップに続いてきたと縮小のオプションを有効にご覧くださいdidntの。それがどこにあるのか、それを動作させるために必要なコードを書くことができますか?ありがとう。 – danfromisrael

8

あなたがautoにdefaultDebugEnabledを設定しているので、web.configファイル内のデバッグ設定がピックアップされます。デバッグモード(web.configで指定されている)の場合、縮小は行われません。 defaultDebugEnabledをfalseに変更するか、ASP.NETアプリケーションでリリースモードに切り替えます。

あなたはより多くの情報のためthis articleセクションのデバッグのサポートを参照することができます。

関連する問題