I’m noticing slow incremental rebuilds in a project containing a large Tailwind.purs file. If I make a small edit to Example.purs (which includes Tailwind.purs), rebuilds take about 4 seconds. I’m wondering if there are some additional optimization opportunities where the unchanged contents of
Tailwind.purs could be remembered between rebuilds.
git clone --branch tailwind-purs https://github.com/milesfrain/halogen.git myApp cd myApp npm install -g purescript spago # or if you prefer local installation: # npm install spago build # slow initial build expected
Slow incremental rebuild (with or without edit to small Example.purs):
time spago build [info] Installation complete. [info] Build succeeded. spago build 2.15s user 0.54s system 273% cpu 0.985 total echo " " >> src/Example.purs time spago build [info] Installation complete. Compiling Example Compiling Main [info] Build succeeded. spago build 5.11s user 1.04s system 163% cpu 3.760 total