YuJian
/
Storyofvue
Archived
1
0
Fork 0
Vue开发去哪儿网App 实战项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

25 lines
524 B

5 years ago
// vue.config.js文件被修改后需要重启Vue服务
5 years ago
const path = require("path");
function resolve(dir) {
return path.join(__dirname, dir);
}
5 years ago
module.exports = {
5 years ago
chainWebpack: config => {
config.resolve.alias
.set("@", resolve("src"))
.set("styles", resolve("src/assets/styles"));
},
5 years ago
lintOnSave: false,
devServer: {
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
pathRewrite: {
"^/api": "/mock"
}
}
}
}
5 years ago
};