安装
node
vscode
同时安装一些扩展程序,方便开发,[程序](我的VS Code扩展 - 掘金 (juejin.cn)) 记得扩展程序:vetur
npm install -g @vue/cli
自定义,选择自定义选项,不进行lint检查
修改配置
在package.json中设置: --open
"scripts": { "serve": "vue-cli-service serve --open", "build": "vue-cli-service build" },
在vue.config.js中设置:devServer
const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, devServer:{ open:true, host:'localhost', port:8080 } })