我正在使用梳子组合器/小型机NuGet包。我还使用以下过滤器:
<filters>
<!-- This filter allows relative urls to be used in Css files like in .NET; e.g. "~/MyFolder/MyPic.png"-->
<filter type="Combres.Filters.FixUrlsInCssFilter, Combres" />
<!-- This filter allows you to define variables in a CSS file and reuse them throughout the file. -->
<filter type="Combres.Filters.HandleCssVariablesFilter, Combres" />
<!-- This filter changes Combres order of ops so that common css variables can be defined in a single
file and used throughout multiple css files, instead of having to define them in each file. -->
<filter type="Combres.Filters.DotLessCssCombineFilter, Combres" />
</filters>这允许我定义单个CssVariables.css文件,并在任何其他css文件中使用这些变量(默认情况下,每个css文件中必须有变量定义,其中使用DotLessCssFilter)。
使用DotLessCssCombineFilter可以改变梳子中的操作顺序,以便首先组合文件,然后在组合文件输出中替换变量。
所有这些都运行得非常好,直到我为telerik样式表设置了资源集。
具体来说,它只是一个有问题的telerik.common.min.css文件。这一问题出现在网上:
#f00;filter:chroma(color=pink)}
违规属性是: filter:chroma(color=pink)
删除该属性将阻止在停止所有处理的combres.axd中发生空错误。该属性仅在整个文件中的该行上使用(从我所能知道的情况来看,没有其他地方)。
如果删除该属性,所有这些都会运行良好。
享受吧!!
发布于 2012-02-21 18:20:52
答案在问题中。我只是想分享这一点,所以没有其他人必须通过telerik文件一行一行,就像我所做的那样,隔离这个问题!
:)
享受吧!
https://stackoverflow.com/questions/9382903
复制相似问题