build: let webpack bundle split.js

This commit is contained in:
Panagiotis Papadopoulos 2025-02-27 23:00:44 +01:00
parent 49a2eb0ccf
commit 559517ace1
4 changed files with 1 additions and 10 deletions

View File

@ -1,4 +1,5 @@
import options from "./options.js";
import Split from "split.js"
let leftInstance: ReturnType<typeof Split> | null;
let rightInstance: ReturnType<typeof Split> | null;

View File

@ -123,13 +123,6 @@ declare global {
language: string
});
};
var Split: (selectors: string[], config: {
sizes: [ number, number ];
gutterSize: number;
onDragEnd: (sizes: [ number, number ]) => void;
}) => {
destroy();
};
var renderMathInElement: (element: HTMLElement, options: {
trust: boolean;
}) => void;

View File

@ -70,8 +70,6 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/node_modules/jquery-hotkeys/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/jquery-hotkeys/")));
app.use(`/${assetPath}/node_modules/split.js/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/split.js/dist/")));
app.use(`/${assetPath}/node_modules/panzoom/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/panzoom/dist/")));
// i18n

View File

@ -44,7 +44,6 @@
<script src="<%= assetPath %>/node_modules/jquery-hotkeys/jquery-hotkeys.js"></script>
<script src="<%= assetPath %>/node_modules/autocomplete.js/dist/autocomplete.jquery.min.js"></script>
<script src="<%= assetPath %>/node_modules/split.js/dist/split.min.js"></script>
<link href="<%= assetPath %>/stylesheets/ckeditor-theme.css" rel="stylesheet">
<link href="api/fonts" rel="stylesheet">