See Page Previews codebase for guidance (how it checks JS assets have been compiled)
Run svgo on all checked in commits and complain if the committer didn't optimise them.
= Acceptance criteria
[] If running the following script on any checked in files results in any filesize changes Jenkins should vote -1
```
git-staged-files() {
git diff --cached -C -C -z --name-only --diff-filter=ACMRTUXB "$@"
}
compress-svg() {
git-staged-files \*.svg|while map file; do
make nodecheck
echo "Compressing $file"
# If anyone can figure out how to get the pretty option to work from the config
# file, feel free to remove it here.
node_modules/.bin/svgo --config=.svgo.yml "$file" --pretty
git add "$file"
done
}
```
[] Bear in mind that your solution will likely be adopted for all projects that are maintained by Reading Web