To run this project locally:
sbt ~frontend/fastOptJS ~sw/fastOptJS
python3 -m http.server --directory frontend/src/main/resources
firefox http://localhost:8000/index.html
In your editor, you might want to exclude ./frontend/src/main/resources/compiledJavascript
To build for production:
sbt frontend/fullOptJS sw/fullOptJS
This project is configured for automatic deployment on Netlify. The build process:
- Netlify automatically runs
./netlify-build.sh
on each push - The build script executes
sbt frontend/fullOptJS
andsbt sw/fullOptJS
- The compiled JavaScript files are generated in
frontend/src/main/resources/
- Netlify serves the contents of
frontend/src/main/resources/
as the static site
Note: The compiled JavaScript files (main.js
, sw-opt.js
, etc.) are now excluded from git and only exist during deployment. This keeps the repository clean and ensures builds are always fresh.