This project is read-only.
4
Vote

Issue with CssRewriteUrlTransform

description

Files:
/Content/some.css
/Content/some.min.css
Bundle:
bundles.Add(new StyleBundle("~/bundles/some")
.Include("~/Content/some.css", new CssRewriteUrlTransform()));
Render:
@Styles.Render("~/bundles/some")
Issue:
Url is wrong. Path is not modified.

Fixing:
bundles.Add(new StyleBundle("~/bundles/some")
.Include("~/Content/some.min.css", new CssRewriteUrlTransform()));
Why:
I think bundle search css file with .min.css extension.
If he is find this file, file don't transformed by CssRewriteUrlTransform.
I think this a mistake.

comments