In the Asp.Net MVC BundleConfig if i use ScriptBundle
it shows below error for this code:
Code:
bundles.Add(new ScriptBundle("~/node/GobiJs").Include(
"~/node_modules/...../test.js"
));
Error:
But if i use Bundle
instead of ScriptBundle
like
bundles.Add(new Bundle("~/node/GobiJs").Include(
"~/node_modules/...../test.js"
));
it works fine. Can anybody tell me what's the wrong with ScriptBundle
, why it is not working?