cljsjs

pupeno 2017-01-27T11:14:19.000770Z

Another noob question...Writing react-toolbox-1.3.3-0.jar… where is it?

pupeno 2017-01-27T12:43:08.000771Z

Can anybody give me a hand figuring out externs for an ES6 library?

peeja 2017-01-27T17:27:31.000773Z

Is there a way to use Bootstrap's Less via cljsjs?

juhoteperi 2017-01-27T17:28:44.000774Z

@peeja No, Cljsjs package only includes the JS files

peeja 2017-01-27T17:29:05.000775Z

Is there a way to get them without resorting to Bower?

juhoteperi 2017-01-27T17:29:30.000776Z

@peeja However, you can include Webjars for package with all the files: [org.webjars.bower/bootstrap "3.3.7"]

juhoteperi 2017-01-27T17:30:25.000777Z

That jar includes e.g. META-INF/resources/webjars/bootstrap/3.3.7/less/bootstrap.less

peeja 2017-01-27T17:30:32.000778Z

Ah, sweet! Thanks.

juhoteperi 2017-01-27T17:30:56.000779Z

my Less4clj package can directly import files from classpath and has special case for resolving imports from webjars: https://github.com/Deraen/less4clj

peeja 2017-01-27T17:31:17.000781Z

Dang, that's fantastic!

peeja 2017-01-27T17:31:22.000782Z

Thanks!

pupeno 2017-01-27T23:52:00.000791Z

I’m trying to package react-toolbox (https://github.com/pupeno/packages/commit/a054c1cdeb0a1b4195e974113826f17f0a4f5f72) and when I load it in my app, I get the error: Uncaught Error: locals[0] does not appear to be a module object with Hot Module replacement API enabled. You should disable react-transform-hmr in production by using env section in Babel configuration. See the example in README: https://github.com/gaearon/react-transform-hmr

pupeno 2017-01-27T23:52:13.000793Z

Does that ring a bell to anybody?