build.sh 223 B

123456789101112
  1. #!/bin/sh
  2. server_dest="../gen/src/main/resources/public"
  3. sudo npm install
  4. rm -rf dist/*
  5. npm run build:prod
  6. echo "复制dist文件内容到$server_dest"
  7. rm -rf $server_dest
  8. mkdir -p $server_dest
  9. cp -r dist/* $server_dest