vue 打包
npm run build
npm install -g serve
$ serve dist/ ┌─────────────────────────────────────────────────────┐ │ │ │ Serving! │ │ │ │ - Local: http://localhost:5000 │ │ - On Your Network: http://192.168.221.128:5000 │ │ │ │ Copied local address to clipboard! │ │ │ └─────────────────────────────────────────────────────┘
npm run dev是开发环境,
npm run build是生产环境