Javascript? CSS?

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Commented on

I'm trying to use MvcCodeRouting for a plugin type setup, but how would I get the javascript files and css files that my embedded views need? Preferably while still using the wonderful Bundling and minification? Someone has to have solved this problem already right? Any help is appreciated.

Thanks

Commented on link

Currently there's no standard way of distributing js and css for your plugin. The VirtualPathProvider implementation is setup to work with views only, and using it for js and css wouldn't be very efficient, but used together with the optimization library could be a good solution.

There's 2 problems: 1) how to distribute js and css with the plugin, 2) how to refer to them from views (URLs). 

There's definately room for improvement and ideas are welcome.

Commented on link

Thanks for the reply, I've been looking at using a custom IBundleTransform to get embeded js and css into the bundling, but then you'd have to register the bundles of the plugin, and handle bundle name conflicts somehow . . . hmm anyway Thanks!