index.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <meta name="referrer" content="no-referrer" />
  8. <script defer src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
  9. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  10. <title>
  11. <%= htmlWebpackPlugin.options.title %>
  12. </title>
  13. <script>
  14. window.MathJax = {
  15. loader: {
  16. // 指定 mathjax 资源根路径为当前 public 目录(如需放到子目录请修改)
  17. paths: { mathjax: './' },
  18. // 只加载必要的输入/输出模块,避免自动加载辅助无障碍模块(会触发 speech-worker)
  19. load: ['input/tex', 'output/chtml']
  20. },
  21. chtml: {
  22. // 指向本地字体目录(建议把 MathJax 的 woff-v2 字体复制到 public/output/chtml/fonts/woff-v2)
  23. fontURL: './output/chtml/fonts/woff-v2'
  24. },
  25. tex: {
  26. inlineMath: [['\\(', '\\)'], ['$', '$']]
  27. }
  28. };
  29. </script>
  30. <script src="./math.js"></script>
  31. <link rel="stylesheet" href="//at.alicdn.com/t/c/font_4939100_wnefpnxejys.css">
  32. </head>
  33. <body>
  34. <noscript>
  35. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
  36. Please enable it to continue.</strong>
  37. </noscript>
  38. <div id="app"></div>
  39. </body>
  40. </html>