/squint-vite

Vite React app template that uses Squint

Primary LanguageCSS

Squint + React + Vite

This template provides a minimal setup to get Squint compiling to React working in Vite with HMR.

Dependencies

Development

$ 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 inside src-cljs to .jsx and outputs it into src folder
  • copies all other files in src-cljs to src folder keeping the directory structure
  • starts squint watch and vite dev processes with HMR, piping their stdio

For configuration options, refer to squint.edn.

Production build

$ bb build