ClojureScript Node.js HMR with Webpack based on shadow-cljs.
It's simpler to do HMR with shadow-cljs alone https://github.com/minimal-xyz/minimal-shadow-cljs-nodejs
- Development
yarn
yarn watch
# use another terminal
yarn dev
# use another terminal
node dist/main.jsEdit src/client/lib.cljs to see hot replacing.
- Build
yarn buildTo get optimized ClojureScript compilation result(need externs support):
shadow-cljs release appIn real-world projects, you may need to config externs to make
:advancedmode work.
MIT