Repack if webpack.config.js changes

This commit is contained in:
Tony Garnock-Jones 2018-11-07 00:27:23 +00:00
parent caf5302c18
commit 0364b32136
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ case "$1" in
;;
*/dist/*)
for d in src/*.js; do echo lib/$(basename $d); done | xargs redo-ifchange
redo-ifchange webpack.config.js
for maybedep in $(npx webpack --json -o "$targettempfile" | jq -r '.modules[].identifier')
do
[ -f "$maybedep" ] && echo "$maybedep"