Build your /dist
files on git commit!
How it works, if changes (diff) are detected in the staging area for a specific folder (i.e: /src
), build-add.sh
will trigger npm run build
and add the new/modified build files to that commit on-the-fly.
npm i -D pre-commit