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.js
Edit src/client/lib.cljs
to see hot replacing.
- Build
yarn build
To get optimized ClojureScript compilation result(need externs support):
shadow-cljs release app
In real-world projects, you may need to config externs to make
:advanced
mode work.
MIT