c# - asp.net mvc Bundle.IncludeDirectory example? -
hi can give me example on how use scriptbundle method includedirectory javascripts, not able how write search pattern string , regex?
bundles.add(new scriptbundle("~/bundles/customjs").includedirectory( "~/scripts/custom",?);
you can write this:
bundles.add(new scriptbundle("~/bundles/customjs").includedirectory( "~/scripts/custom","*.js")); if want example javascript.
you can read more here: http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification
Comments
Post a Comment