From df3f51d1f38007e475e7ff4fa3290b094137c6f4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 1 Nov 2024 23:42:23 +0200 Subject: [PATCH] electron: Fix loading of highlight.js --- bin/copy-dist.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 1927221fc..9910ae606 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -55,6 +55,7 @@ const copy = async () => { "node_modules/katex/dist/katex.min.js", "node_modules/katex/dist/contrib/mhchem.min.js", "node_modules/katex/dist/contrib/auto-render.min.js", + "node_modules/@highlightjs/cdn-assets/highlight.min.js" ]; for (const file of nodeModulesFile) { @@ -89,7 +90,9 @@ const copy = async () => { "node_modules/codemirror/addon/", "node_modules/codemirror/mode/", "node_modules/codemirror/keymap/", - "node_modules/mind-elixir/dist/" + "node_modules/mind-elixir/dist/", + "node_modules/@highlightjs/cdn-assets/languages", + "node_modules/@highlightjs/cdn-assets/styles" ]; for (const folder of nodeModulesFolder) {