BASEDIR=$(dirname "$0") npx webpack --mode production --progress || exit $? rsync -azv $BASEDIR/public/* system-praktyk@kadet.net:~/dev/front rsync -azv $BASEDIR/build/* system-praktyk@kadet.net:~/dev/front