1 Star 0 Fork 0

方源/teamwork-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 741 Bytes
一键复制 编辑 原始数据 按行查看 历史
方源 提交于 2021-03-04 14:20 . teamwork-ui
// const path = require("path");
// const resolve = dir => path.join(__dirname, dir);
module.exports = {
configureWebpack: {
resolve: {
alias: {
"assets": "@/assets",
"components": "@/components",
"views": "@/views"
}
}
},
devServer: {
port: 8081,
proxy: {
"/teamwork/": {
target: "http://localhost:8080",
ws: true,
changeOrigin: true,
pathRewrite: {
"^/teamwork": "/teamwork"
}
}
}
// proxy: "http://localhost:8080"
},
/*chainWebpack: config => {
// 路径别名配置
config.resolve.alias
.set("@", resolve("src"))
.set("assets", resolve("src/assets"))
.set("components", resolve("src/components"))
.set("views", resolve("src/views"))
}*/
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/JianYuanAoXue/teamwork-ui.git
[email protected]:JianYuanAoXue/teamwork-ui.git
JianYuanAoXue
teamwork-ui
teamwork-ui
master

搜索帮助