bundles.Add(new StyleBundle("~/a/b/c")
.Include("~/Content/font-awesome.css", new CssRewriteUrlTransform()));
我有這個捆綁。字體 - 真棒CSS有定義爲url('../fonts/fontawesome-webfont.eot?v=4.0.3')
一個URL時,CSS位於"~/Content/font-awesome.css"
下,但現在它在「〜/ A/B」CssRewriteUrlTransform不採取
但CssRewriteUrlTransform
位於不踢和重寫路徑url('../../fonts/fontawesome-webfont.eot?v=4.0.3')
更新:如果我刪除.min文件,它CssRewriteUrlTransform
開始工作,在網頁優化中的錯誤?
https://aspnetoptimization.codeplex.com/workitem/166
刪除min css文件爲我工作,感謝'更新'。我認爲捆綁試圖如果發現一個靜態的min-繞過CssRewriteUrlTransform,會試圖跳過縮小過程,看起來像是一個錯誤,但很容易解決。 – stlawrence