打印/下载
打包
Nginx

打包

# 目录
cd admin
# 打包
yarn build
  • 后台系统: 只需指向dist为根目录
  • APP应用: 参考VueAPP下的打包步骤

Nginx配置(静态页面)

server {
    listen       80;
    server_name  admin.webmis.vip;
    root /home/www/base/admin/dist;
    index index.html;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.html;
    }

    location ~ /\.ht {
        deny  all;
    }
}
{{copy}}