短期間では、私はそれを動作させることはできません。フィルタはそれを自己適用するようには見えません。CombresとDotLessCssFilter
私はMVC 3カミソリのアプリケーションで動作するようにコンフェクトを取得しようとしています。そして私はDotLessCssFilterを除いてすべてを稼働させています。
<combres xmlns='urn:combres'>
<filters>
<filter type="Combres.Filters.DotLessCssFilter, Combres" acceptedResourceSets="dotLessCss" />
</filters>
<resourceSets url="~/combres.axd" defaultDuration="30" defaultVersion="1" defaultVersionGenerator="Combres.VersionGenerators.Sha512VersionGenerator">
<resourceSet name="siteCss" type="css">
<resource path="~/UI/Styles/1140.css" />
<resource path="~/UI/Styles/typeimg.css" />
<resource path="~/UI/Styles/layout.css" />
</resourceSet>
<resourceSet name="siteJs" type="js">
<resource path="~/UI/Scripts/opt/util.js" />
<resource path="~/UI/Scripts/opt/core.js" />
</resourceSet>
</resourceSets>
</combres>
をそして、それはそれが必要として、ファイルやminifiesを兼ね備え:ドキュメントで
それは私がこのようcombres.configを変更したIn order to apply a filter to your resource sets, you need to modify your Combres config file
言います。私のファイルの一つで
私はシンプルあまり構文があります。
@sprite: url(/ui/styles/sprite.png);
.foo {
background-image: @sprite;
}
をしかし、フィルタを介して置くことはありませんだと思われます。
これはMVCの問題か一般的な問題かわかりません。
誰でもこのフィルタを使用しましたか?
心配しないでください! (EDIT)
さらに進んで、現在のバンドルではなく、MVCチームがCombresの機能をMVCに組み込むことを望みました。 –