I am using d3.js which is a plugin to display Graph digrams. In BundleConfig.cs I am registering the script to bundle as below. With debug=true it doesn't bundle the js and dashboard (screen where I am displaying the graph) works fine. But once debug made false then the Graph doesn't load. When I see in the F12 developer tools I can see the bundled script loaded but it's not loading the graph. Can someone suggest if I am missing something.
bundles.Add(new ScriptBundle("~/bundles/dashboard").Include(
"~/Scripts/d31.js"
));