Tim
Tim

Reputation: 7421

MVC5 Bundler being too greedy?

I have a bundle

bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

Here is my script folder's jquery prefixed scripts

All jQuery prefixed Scripts

Why (when i build for release) is my 90.4KB minified file giving a 156K output? fiddler When i inspect the file it is minified, is it possible its combining more than one file?

I am using the MVC5 beta files so im not sure if the wildcard i am using is still correct?

Upvotes: 0

Views: 277

Answers (1)

Hao Kung
Hao Kung

Reputation: 28200

If you run with debug=true, by default the bundle's contents will be enumerated as individual links and you can see approximately what its trying to include. It will differ slightly as it will choose .min.js over plain .js.

Upvotes: 1

Related Questions