asp.net mvc - ScriptBundle not including other script depending on the ordering -


i'm trying combine scripts one.. have 2 folders, main folder 'scripts' , other 'scripts/other'.

when try:

bundletable.bundles.add(new scriptbundle("~/scripts/all").include("~/scripts/*.js", "~/scripts/other/*.js")); 

scripts 'scripts/other' not included. when invert order:

bundletable.bundles.add(new scriptbundle("~/scripts/all").include("~/scripts/other/*.js", "~/scripts/*.js")); 

it works!! can tell me why?

can try calling includedirectory methods directly , seeing if see same issue?

scriptbundle("~/scripts/all").includedirectory("~/scripts", "*.js").includedirectory("~/scripts/other", "*.js")); 

if works, it's possible have bug here.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -