Fork me on GitHub
#shadow-cljs
<
2023-12-16
>
akis02:12:21

hey all, what do you use when you need to import css from a module, e.g.

import "some-lib/lib/styles.css"
if I understand correctly, shadow-cljs doesn't support this directly. Is there a workaround? Thanks!

hifumi12303:12:52

A few workarounds can include: • if you are using Sass, import them directly in your SCSS files • configure webpack with css-loader, style-loader, etc.

👍 1
thheller14:12:20

basically all this means is that there is a node_modules/some-lib/lib/styles.css file on disk. as long as you get it into your html by some means its fine. manually copying is fine. no need for overkill tools for such a simple task.

akis15:12:51

I was planning something like that, really don’t feel like bringing in webpack just for this! 😅 Thanks both of you