Update hook to rebuild (S)CSS as well
This commit is contained in:
parent
27e3dc9b14
commit
85ebfa0c55
597
app/dist/fix.ie9.js
vendored
597
app/dist/fix.ie9.js
vendored
File diff suppressed because one or more lines are too long
2
app/dist/fix.ie9.js.map
vendored
2
app/dist/fix.ie9.js.map
vendored
File diff suppressed because one or more lines are too long
5818
app/dist/index.js
vendored
5818
app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
app/dist/index.js.map
vendored
2
app/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
8534
app/dist/style.css
vendored
8534
app/dist/style.css
vendored
File diff suppressed because one or more lines are too long
@ -7,10 +7,10 @@ else
|
||||
exit 1
|
||||
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
|
||||
if [ -z "$js_files" ]
|
||||
if [ -z "$css_js_files" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user