1.运行npm run build: 会在当前目录下生成dist文件夹:
2.copy已经打好的dist文件夹下的文件到对应nginx目录下:
cd /app/openresty/nginx/html
rm -rf staticrm -rf index.htmlcd /tmppwdmv dist/static/ /app/openresty/nginx/html/mv dist/index.html /app/openresty/nginx/html/