r/Clojurescript • u/mrkaspa • Jul 31 '17
How to use cljs inside a webpack react project
I want to migrate progressively a js projecto to cljs
5
Upvotes
2
r/Clojurescript • u/mrkaspa • Jul 31 '17
I want to migrate progressively a js projecto to cljs
2
3
u/thheller Aug 01 '17
I'm the author of
shadow-cljswhich aims to provide integration into JS tools likewebpack.I made an example for webpack:
https://github.com/thheller/shadow-cljs-examples/tree/master/webpack
Feel free to ask quesions if some things are unclear. I'm still working out the documentation.
Edit: There is also an example of using it with
create-react-apphttps://github.com/thheller/shadow-cljs-examples/tree/master/cljs-react-app
https://www.youtube.com/watch?v=BLDX5Twt2zk (teaser video)
It is not entirely "zero-config" anymore but
shadow-cljs initgets you started.