mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
CODEBASE: Generate display data for math notation at built time and remove runtime mathjax dependency (#2447)
This commit is contained in:
@@ -5,7 +5,6 @@ const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
|
||||
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
||||
const CopyPlugin = require("copy-webpack-plugin");
|
||||
|
||||
/** @type {import("webpack-cli").CallableOption} */
|
||||
module.exports = (env, argv) => {
|
||||
@@ -124,15 +123,6 @@ module.exports = (env, argv) => {
|
||||
module: true,
|
||||
}),
|
||||
enableReactRefresh && new ReactRefreshWebpackPlugin(),
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: "{tex-chtml.js,*/**/*}",
|
||||
to: "mathjax",
|
||||
context: "node_modules/mathjax-full/es5",
|
||||
},
|
||||
],
|
||||
}),
|
||||
].filter(Boolean),
|
||||
target: "web",
|
||||
entry: entry,
|
||||
|
||||
Reference in New Issue
Block a user