asp.net mvc 4 - Bundling and Minification Issue in Chrome but works fine in Mozilla -


i have few js files trying bundle using mvc4, code follows:-

public static void registerbundles(bundlecollection bundles) {     //global app items go here.     bundles.add(new scriptbundle("~/scripts/modernizr")         .include("~/scripts/modernizr-*"));     bundles.add(new scriptbundle("~/bundles/lib")         .include(             "~/scripts/jquery.js",             "~/scripts/jquery.unobtrusive*",             "~/scripts/jquery.validate*",             "~/scripts/jquery-ui*",             "~/scripts/jquery.tablesorter.js"));      bundles.add(new stylebundle("~/content/bootstrap")         .include("~/content/bootstrap.css"));      var lessbundle = new bundle("~/content/myapp").include(         "~/content/jquerymultiselect.less",                         "~/content/scrollbars.css");     lessbundle.transforms.add(new lesstransform());     lessbundle.transforms.add(new cssminify());     bundles.add(lessbundle);      bundletable.enableoptimizations = true; } 

now, when see console in firefox, can see response expected. when same in chrome, bundled file broken.

broken may non-technical term, mean broken :- enter image description here

the file incomplete....

please let me know, if need provide more detail.

its display issue.

in chrome js file length limited, not display completely.

try open file in new tab, see entire content.

in firefox, prompts user open in new tab see complete content.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -