This template provides a minimal setup to get Squint compiling to React working in Vite with HMR.
$ git clone https://github.com/sher/squint-vite my-app
$ cd my-app
$ npm install
$ bb dev
What bb dev
command does is:
- compiles every
.cljs
file insidesrc-cljs
to.jsx
and outputs it intosrc
folder - copies all other files in
src-cljs
tosrc
folder keeping the directory structure - starts squint watch and vite dev processes with HMR, piping their stdio
For configuration options, refer to squint.edn.
$ bb build