Feature Request: `hyperctl server` and `hyperctl build` hooks

Would love a release that allows for hooks on server mode and built-in pre-build hooks. (Although its fairly simple when using build to just write up a shell script, it would be a nice to have built into the CLI)

For example, this could allow devs to use another CLI tool to run any pre-build commands or re-build (in server mode) when a file change happens with any relevant CLI command(s) running before the rebuild.

A few use cases come to mind:

  • Image Optimization via CLI (resize images, or create various sizes of images)
  • Building CSS from SASS/SCSS files, or after using Tailwind’s CLI
  • Minify JS/CSS files
1 Like

In the interim, I’m splitting my shell (e.g. tmux can do this) and running watchman in one shell to trigger rebuilds based on changes to my /static/css directory. hyperctl server is running in the other shell just fine.