diff --git a/style/daisyui-theme-wrapper.js b/style/daisyui-theme-wrapper.js deleted file mode 100644 index 7265523..0000000 --- a/style/daisyui-theme-wrapper.js +++ /dev/null @@ -1,18 +0,0 @@ -let daisyui_theme = null; - -try { - daisyui_theme = require('daisyui/theme'); -} catch (e) { } - -if (daisyui_theme == null) { - try { - daisyui_theme = require(`${process.env.DAISYUI_THEME_PATH}/daisyui-theme.js`); - } catch (e) { } -} - -if (daisyui_theme == null) { - console.error('Could not find DaisyUI/theme'); - throw new Error('Could not find DaisyUI/theme'); -} - -export default daisyui_theme.default || daisyui_theme; diff --git a/style/daisyui-wrapper.js b/style/daisyui-wrapper.js deleted file mode 100644 index 52873dd..0000000 --- a/style/daisyui-wrapper.js +++ /dev/null @@ -1,18 +0,0 @@ -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; diff --git a/style/tailwind.css b/style/tailwind.css index 2ce13fa..5e7eabd 100644 --- a/style/tailwind.css +++ b/style/tailwind.css @@ -1,10 +1,10 @@ @import "tailwindcss"; -@plugin "./daisyui-wrapper.js" { +@plugin "daisyui" { themes: all; }; -@plugin "./daisyui-theme-wrapper.js" { +@plugin "daisyui-theme" { }; @source not "*";