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