assume you’ve got a runnable dist folder
yarn build
/ npm build
后会生成一个dist文件夹
如何本地部署它
yarn global add expess-generator
安装express
mkdir local-dists
cd local-dists
express helloworld
cd helloworld
把dist文件夹下所有内容,复制粘贴进 helloworld/public
yarn start
浏览器输入:
http://localhost:3000
成功输出helloworld