refactor(highlightjs): move dependency

This commit is contained in:
Elian Doran
2025-05-18 00:20:43 +03:00
parent d4fab87ed9
commit 7bfe261ac6
6 changed files with 16 additions and 21 deletions

View File

@@ -6,8 +6,7 @@
"dependencies": {
"better-sqlite3": "11.10.0",
"jquery.fancytree": "2.38.5",
"jquery-hotkeys": "0.2.2",
"@highlightjs/cdn-assets": "11.11.1"
"jquery-hotkeys": "0.2.2"
},
"devDependencies": {
"@electron/remote": "2.1.2",

View File

@@ -90,8 +90,6 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/node_modules/normalize.css/`, persistentCacheStatic(path.join(nodeModulesDir, "normalize.css/")));
app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(nodeModulesDir, "jquery.fancytree/dist/")));
app.use(`/${assetPath}/node_modules/@highlightjs/cdn-assets/`, persistentCacheStatic(path.join(nodeModulesDir, "@highlightjs/cdn-assets/")));
}
export default {

View File

@@ -22,7 +22,6 @@ function buildFilesToCopy() {
"autocomplete.js/dist",
"normalize.css/normalize.css",
"jquery.fancytree/dist",
"@highlightjs/cdn-assets",
// Required as they are native dependencies and cannot be well bundled.
"better-sqlite3",