asp.net mvc cssRewriteUrlTransform multiple arguments
asp.net, asp.net-mvc, css
Solution
You can't mix both overloads of the `Include` method:
public virtual Bundle Include(params string[] virtualPaths);
public virtual Bundle Include(string virtualPath, params IItemTransform[] transforms);
If you need the `CssRewriteUrlTransform` on each of the files, try this:
bundles.Add(new StyleBundle("~/Content/GipStyleCss")
.Include("~/Content/GipStyles/all.css", new CssRewriteUrlTransform())
.Include("~/Content/GipStyles/normalize.css", new CssRewriteUrlTransform())
.Include("~/Content/GipStyles/reset.css", new CssRewriteUrlTransform())
.Include("~/Content/GipStyles/style.css", new CssRewriteUrlTransform())
);
Problem
I'm trying to use CssRwriteUrlTransform in one of my bundles in bundleconfig, but I keep getting a missing argument error, this is what I have: ``` bundles.Add(new StyleBundle("~/Content/GipStyleCss").Include( new CssRewriteUrlTransform(), "~/Content/GipStyles/all.css", "~/Content/GipStyles/normalize.css", "~/Content/GipStyles/reset.css", "~/Content/GipStyles/style.css", )); ``` this is probably wrong, but I don't know where to add the the CssRewriteUrlTransform argument with an include that has multiple arguments