diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-30 21:44:42 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-31 12:11:46 -0300 |
commit | 6dbf976005f097b3737aa87d2d09239f7a37f330 (patch) | |
tree | 602555d6fa16933e1ca50cc787d7c35da0078644 | |
parent | b705b488b04522a0d21da989015c40461f120c6e (diff) |
web-routes: expose chroma.js in client code
-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 = [ |