Replace vendor MathJax with NPM package, upgrade to 2.7.9 (#3702)

* Replace vendor MathJax with NPM package, upgrade to 2.7.9

* Disable fast-preview feature in Mathjax

GitOrigin-RevId: e3ef1dbabae1da7c359e370a2c491a4214841c76
This commit is contained in:
Thomas
2021-03-05 03:04:57 +00:00
committed by Copybot
parent 522a71b514
commit 84a4cc33be
196 changed files with 30 additions and 3249 deletions
+18 -4
View File
@@ -250,11 +250,25 @@ module.exports = {
contextRegExp: /moment$/
}),
new CopyPlugin([
// Copy the required files for loading MathJax from MathJax NPM package
new CopyPlugin(
[
{ from: 'MathJax.js', to: 'js/libs/mathjax' },
{ from: 'config/**/*', to: 'js/libs/mathjax' },
{ from: 'extensions/**/*', to: 'js/libs/mathjax' },
{ from: 'localization/en/**/*', to: 'js/libs/mathjax' },
{ from: 'jax/output/HTML-CSS/fonts/TeX/**/*', to: 'js/libs/mathjax' },
{ from: 'jax/output/HTML-CSS/**/*.js', to: 'js/libs/mathjax' },
{ from: 'jax/element/**/*', to: 'js/libs/mathjax' },
{ from: 'jax/input/**/*', to: 'js/libs/mathjax' },
{ from: 'fonts/HTML-CSS/TeX/woff/*', to: 'js/libs/mathjax' }
],
{
from: 'frontend/js/vendor/libs/mathjax',
to: 'js/libs/mathjax'
},
context: 'node_modules/mathjax'
}
),
new CopyPlugin([
{
from: 'frontend/js/vendor/libs/sigma-master',
to: 'js/libs/sigma-master'