It would be nice to restart the offline server if a specific file changes.
Related issue:
https://github.com/seek-oss/serverless-haskell/issues/69
You can use a tool like nodemon.
@dherault Do you have an example of using nodemon to handle the restarts? I can't seem to find an example.
Try this
nodemon --exec "sls offline start" -e "extensions,to,watch,for,example,js,elm,hs,py"
Most helpful comment
Try this
nodemon --exec "sls offline start" -e "extensions,to,watch,for,example,js,elm,hs,py"