Update hook to rebuild (S)CSS as well

This commit is contained in:
Lucas Verney 2016-07-30 00:48:41 +02:00
parent 27e3dc9b14
commit 85ebfa0c55
6 changed files with 34 additions and 14923 deletions

597
app/dist/fix.ie9.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

5818
app/dist/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

8534
app/dist/style.css vendored

File diff suppressed because one or more lines are too long

View File

@ -7,10 +7,10 @@ else
exit 1 exit 1
fi fi
js_files=$(git diff-index --name-only $against | grep -e ".jsx\?$" | grep -v "^app/dist") css_js_files=$(git diff-index --name-only $against | grep -e '.\(jsx\?\)\|\(s\?css\)$' | grep -v "^app/dist")
# Nothing more to do if no JS files was committed # Nothing more to do if no JS files was committed
if [ -z "$js_files" ] if [ -z "$css_js_files" ]
then then
exit 0 exit 0
fi fi