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
Post a Comment