Add daisyui

Add wrapper scripts and fetch JS for nix compatibility
This commit is contained in:
2026-06-11 19:21:48 -04:00
parent 92c7599962
commit 745deb8809
4 changed files with 84 additions and 0 deletions

18
style/daisyui-wrapper.js Normal file
View File

@@ -0,0 +1,18 @@
let daisyui = null;
try {
daisyui = require('daisyui');
} catch (e) { }
if (daisyui == null) {
try {
daisyui = require(`${process.env.DAISYUI_PATH}/daisyui.js`);
} catch (e) { }
}
if (daisyui == null) {
console.error('Could not find DaisyUI');
throw new Error('Could not find DaisyUI');
}
export default daisyui.default || daisyui;