Currently, if you use the websocket or SSE watchers, any changes made to your JS or CSS will fire off a recompile of the crystal side. Depending on what you use for your yarn watch command, this may already be happening through your js dev server anyway. This PR adds a way to customize this. If you want to watch your css and js in this manner, then you still can.
Purpose
Fixes #1747 Fixes #920
Description
Currently, if you use the websocket or SSE watchers, any changes made to your JS or CSS will fire off a recompile of the crystal side. Depending on what you use for your
yarn watch
command, this may already be happening through your js dev server anyway. This PR adds a way to customize this. If you want to watch your css and js in this manner, then you still can.This would also allow you to watch other files as well.
Checklist
crystal tool format spec src
./script/setup
./script/test