Hi, is there any updated (2025) answer how to import styles from './styles.css' using shadow-cljs? Ref: https://stackoverflow.com/questions/55308431/how-to-load-css-files-in-clojurescript-project-with-shadow-cljs
to answer that I'd need to understand what import styles from './styles.css' means to you. because it can mean a million different things
but basically the answer is still the same. shadow-cljs does not support css in any way
OK, in a specific case I am using Bootstrap5 and want to just do the equivalent of import 'bootstrap/dist/css/bootstrap.css' in a React19 app with UIx. (As a workaround, I'm linking to the CDN version in index.html directly.)
ok, there is no support for that. could technically be done in a build hook
maybe I should create a reference example for that 😛
I saw an example how to do that with Tailwind: https://github.com/kaepr/game-of-life-cljs/blob/main/package.json#L8 but no idea how to do a similar thing with Bootstrap - I tried creating a similar build script but boostrap dosn't seem to have a similar support.
define similar thing
this is just a css file, it doesn't need building of any kind
a literal copy is enough?
import 'bootstrap/dist/css/bootstrap.css' the file for this is located in node_modules/bootstrap/dist/css/bootstrap.css
copy it whereever you like and use it, it is probably the exact file you get from the CDN
they also have a .min.css if you want something smaller
> a literal copy is enough? ... Yes, for now. I will follow the copy approach, thanks.
if you add a second file just concat them together 😛