From ed33b72f5768a8b596edd5ebb2f94a08fc4b7fc7 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 29 Jan 2025 08:48:03 +0100 Subject: [PATCH] chore(assets): remove manual provision of knockout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is only used in setup.ts and there it is already packed by webpack – so no need to manually provide it as static asset anymore --- bin/copy-dist.ts | 1 - src/routes/assets.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/bin/copy-dist.ts b/bin/copy-dist.ts index 7203b3496..bdb4e311e 100644 --- a/bin/copy-dist.ts +++ b/bin/copy-dist.ts @@ -89,7 +89,6 @@ const copy = async () => { "node_modules/jsplumb/dist/", "node_modules/vanilla-js-wheel-zoom/dist/", "node_modules/mark.js/dist/", - "node_modules/knockout/build/output/", "node_modules/normalize.css/", "node_modules/jquery.fancytree/dist/", "node_modules/bootstrap/dist/", diff --git a/src/routes/assets.ts b/src/routes/assets.ts index a46801559..15af7cad3 100644 --- a/src/routes/assets.ts +++ b/src/routes/assets.ts @@ -88,8 +88,6 @@ async function register(app: express.Application) { // Deprecated, https://www.npmjs.com/package/autocomplete.js?activeTab=readme app.use(`/${assetPath}/node_modules/autocomplete.js/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/autocomplete.js/dist/"))); - app.use(`/${assetPath}/node_modules/knockout/build/output/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/knockout/build/output/"))); - app.use(`/${assetPath}/node_modules/normalize.css/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/normalize.css/"))); app.use(`/${assetPath}/node_modules/jquery.fancytree/dist/`, persistentCacheStatic(path.join(srcRoot, "..", "node_modules/jquery.fancytree/dist/")));