Vue项目运行时自动弹出浏览器运行的 vue.config.js配置文件
代码如下(cv即可)
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
// 本地端口
port: 8083,
// 是否自动打开
open: true,
// 是本地地址运行
host: 'localhost'
},
// 关闭eslint校验
lintOnSave: false
})
文章讲述了在Vue项目中,如何配置vue.config.js文件以实现运行时自动弹出浏览器,并指定了本地开发服务器的端口8083,以及禁用了eslint的保存时校验。
1182

被折叠的 条评论
为什么被折叠?



