yan14171 / homepage

My very own personal website. Basically this is just a résumé.
https://yan14171.github.io/homepage/
MIT License
0 stars 0 forks source link

Create .git/hooks/pre-commit file #31

Open yan14171 opened 3 years ago

yan14171 commented 3 years ago

should look roughly like this:

#!/bin/sh
if workbox generateSW workbox-config.js ; then
  git add sw.js
  exit 0
else
  echo "Cannot generate sw.js"
  echo "Aborting"
fi