1刷钢,首先 npm uninstall -g vue-cli
全局卸載vue-cli
2,然后 npm install -g @vue/cli
全局安裝@vue/cli
3垃瞧,工具:report 分析報(bào)告頁(yè)面給打包到了dist中
需執(zhí)行 vue-cli-service build --report
或者在 package.json scripts對(duì)象中配置 "buildreport": "vue-cli-service build --report",
report報(bào)告
4, 工具:GUI通過 vue ui
命令使用 GUI 運(yùn)行更多的特性
GUI
5酝锅,通過gui創(chuàng)建項(xiàng)目xms
image.png
6, vue項(xiàng)目搭配chrome瀏覽器vue.js devtools
插件更好
再次了解
1到涂,使用npx 同npm
2, cd myproject npx vue-cli-service server
執(zhí)行項(xiàng)目服務(wù)