saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.02k stars 1.3k forks source link

DaisyUI and Hugo #241

Closed arnaud-lecat closed 3 years ago

arnaud-lecat commented 3 years ago

Hi I am trying to use DaisyUI with a Hugo web site but it does not seem to work. I think that messages displayed in command line when processing files are embedded in the CSS file

Need help please

saadeghi commented 3 years ago

@jarod51 Can you please provide an example repo so I can reproduce the issue?

arnaud-lecat commented 3 years ago

Hi @saadeghi . I have no repo until yet but here are the simple steps to reproduce the error

I followed this post https://www.wimdeblauwe.com/blog/2021/01/18/using-hugo-with-tailwind-css-2/ . Everything works ok at the end

Then I added DaisyUI with npm and added it as a plugin in tailwind config. CSS are not generated anymore

arnaud-lecat commented 3 years ago

This is this message that seems to be embedded in the start of file ! :)

"๐ŸŒผ daisyUI components 1.14.3 https://github.com/saadeghi/daisyui โœ”๏ธŽ Including: base, components, themes[21], utilities"

saadeghi commented 3 years ago

@jarod51 that message should be in the terminal but for some reason hugo puts it inside the CSS file ๐Ÿ˜…
Anyway, you can disable the log messages using logs config and everything will be okay:

daisyui: {
  logs: false,
}
arnaud-lecat commented 3 years ago

Thank you !