« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generatePageLayout.js4
-rw-r--r--src/web-routes.js7
2 files changed, 11 insertions, 0 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 824b3c04..f4b7e7a7 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -624,6 +624,10 @@ export default {
             ]),
 
             html.tag('script', {
+              src: to('staticLib.path', 'chroma-js/chroma.min.js'),
+            }),
+
+            html.tag('script', {
               blocking: 'render',
               src: to('staticJS.path', 'lazy-loading.js'),
             }),
diff --git a/src/web-routes.js b/src/web-routes.js
index 3d610011..2ebd6f3e 100644
--- a/src/web-routes.js
+++ b/src/web-routes.js
@@ -45,6 +45,13 @@ export const dependencyRoutes = [
 
     to: ['staticLib.path', 'flexsearch'],
   },
+
+  {
+    from:
+      getNodeDependencyRootPath('chroma-js'),
+
+    to: ['staticLib.path', 'chroma-js'],
+  }
 ];
 
 export const allStaticWebRoutes = [