Reputation: 427
Am trying to bundle a JS file that has a configuration in MVC 4,
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
BundleConfig.cs File,
bundles.Add(new ScriptBundle("~/bundles/MathJax").Include(
"~/Scripts/MathJax/MathJax.jsMathJax.js?config=TeX-AMS-MML_HTMLorMML"));
_Layout.chtml file
@Scripts.Render("~/bundles/MathJax")
When I include the JS in the header it works but does not work when included in the Bundle.
I tried to add the config to the render section,
BundleConfig.cs File,
bundles.Add(new ScriptBundle("~/bundles/MathJax").Include(
"~/Scripts/MathJax/MathJax.jsMathJax.js"));
_Layout.chtml file
@Scripts.Render("~/bundles/MathJax?config=TeX-AMS-MML_HTMLorMML")
Upvotes: 1
Views: 305
Reputation: 2107
MathJax has many dependencies and doesn't seem to support bundling. It would require numerous changes to the js files themselves and would be unsupportable.
So the answer to your question is. No, you cannot bundle Mathjax.
Upvotes: 0