cljsjs

tmarble 2018-10-29T15:21:13.003800Z

How can I use CSS from a CLJSJS package? I am using the JavaScript from https://github.com/cljsjs/packages/blob/master/react-datepicker/build.boot#L29 and (per the link above) I can verify that the *.css files are present in the jar... BUT they do not land next to the Javascript (in resources/public/dev/cljsjs/react-datepicker/development/ )???? For extra credit.. why isn't the upstream SASS part of the CLJSJS jar (my project uses SASS) https://github.com/Hacker0x01/react-datepicker/tree/master/src/stylesheets

juhoteperi 2018-10-29T15:42:27.004600Z

@tmarble https://github.com/cljsjs/packages/wiki/Non-JS-Assets, and SASS: each file needs to be included in packaging script

tmarble 2018-10-29T15:44:58.005Z

ugh... that's brutal.. I have to extract them myself from the jar?

tmarble 2018-10-29T15:45:22.005200Z

thx for the pointer!

juhoteperi 2018-10-29T15:49:27.006900Z

For SASS files, you could update Cljsjs packaging script or use [org.webjars.npm/react-datepicker "1.5.0"] just for SASS files (sass4clj can import files from cljsjs and webjars)

tmarble 2018-10-29T15:50:12.007300Z

ok

tmarble 2018-10-29T21:18:12.008300Z

It turns out that I can use ring-cljsjs to serve non-JS artifacts from CLJSJS jars (and I think that's a better solution than vendoring upstream SASS)... Thanks again for the pointer