1 Star 2 Fork 0

小邑丶 / xy_vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 660 Bytes
一键复制 编辑 原始数据 按行查看 历史
小邑丶 提交于 2022-04-21 18:05 . 初始化
const path = require("path");
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
/*关闭每次保存都进行检测*/
lintOnSave: false,
/*项目部署 路径*/
publicPath: "/",
transpileDependencies: true,
// 设为false打包时不生成.map文件
productionSourceMap: false,
devServer: {
/*自动打开浏览器*/
open: true,
host: "localhost",
port: 8081,
https: false,
/*配置跨域*/
proxy: {
"/api": {
target: "http://127.0.0.1:8081",
ws: false,
changOrigin: true,
pathRewrite: {
"^/api": "/",
},
},
},
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangyi1998/xyVue.git
git@gitee.com:yangyi1998/xyVue.git
yangyi1998
xyVue
xy_vue
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891