r/ASPNET • • Nov 28 '13

[MVC] Organizing your BundleConfig.cs

http://blackandodd.blogspot.se/2013/11/aspnet-mvc-organizing-your.html
9 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/i8beef Nov 29 '13

In a single line in the bundle configuration. The CDN does introduce one caveat: turning on CDN support is only supported at the bundle level still, so you will need all your CDN references in one bundle.

But the point about the complexity still stands. What you are doing by abstracting the strings or into classes only adds a bunch of complexity on top of an already simple operation, and I think it's just going to be confusing for anyone coming in looking at it.

1

u/[deleted] Nov 29 '13

In a single line? You mean to make a mega file and use it?

1

u/i8beef Nov 29 '13

One line per script, vs. A dozen per script your way. Which sounds more simple?

1

u/[deleted] Nov 29 '13

Doesn't seem very simple to re-host and update the big file

→ More replies (0)