Skip to content

minimal-xyz/minimal-shadow-cljs-webpack-nodejs

Repository files navigation

[Deprecated]

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

Guide

  • 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.

License

MIT