feat: Adds browser-sync / hot reload

This commit is contained in:
2025-01-09 08:15:48 -05:00
parent e414afd95b
commit da5fec4a94
4 changed files with 49 additions and 22 deletions

6
swift-dev Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env zsh
touch .build/browser-dev-sync
browser-sync start -p localhost:8080 --ws &
watchexec -w Sources -e .swift -r 'swift build --product App && touch .build/browser-dev-sync' &
watchexec -w .build/browser-dev-sync --ignore-nothing -r '.build/debug/App'