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.

20 lines
403 B

5 months ago
module.exports = {
devServer: {
port: 8080,
proxy: {
'/api': {
target: process.env.VUE_APP_BASE_API,
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
},
// 生产环境配置
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
// 如果需要在生产环境禁用 sourcemap
productionSourceMap: false
}