首先安装react脚手架依赖: yarn
然后安装node依赖:cd server & yarn
根目录下启动webpack服务:npm start
server目录下启动node服务:npm run test
根目录下启动webpack打包:npm run build
教程链接 https://juejin.im/post/5c9d88ea6fb9a070c6189d69#heading-33
首先安装react脚手架依赖: yarn
然后安装node依赖:cd server & yarn
根目录下启动webpack服务:npm start
server目录下启动node服务:npm run test
根目录下启动webpack打包:npm run build
教程链接 https://juejin.im/post/5c9d88ea6fb9a070c6189d69#heading-33