MVC4 bundling/minification with IE conditional comments

前端 未结 3 795
情书的邮戳
情书的邮戳 2020-12-29 10:42

I am trying to use MVC4\'s new \"bundling and minification\".

For IE conditional comments, I\'m still doing it the old way: ", ie, Styles.Render(paths)); return new MvcHtmlString(tag); }

There is a similar method for scripts. A view calls them as such:

@Bundles.RenderStylesIe("lt IE 9", "~/Content/foo")
@Bundles.RenderScriptsIe("lte IE 7", "~/Scripts/bar")

If there is a better way, I'd appreciate the advice.

提交回复
热议问题