build.sh 205 B

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