1. build创建

npm run build

2. 全局安装serve库

npm i serve -g

3. 以build文件夹为服务器的根目录

serve build