diff options
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 4 | ||||
-rw-r--r-- | src/web-routes.js | 7 |
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 = [ |