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是生产环境

posted @ 2020-10-23 16:04  方诚  阅读(77)  评论(0编辑  收藏  举报