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.
29 lines
555 B
29 lines
555 B
module.exports = { |
|
lintOnSave: false, |
|
publicPath: '/', |
|
configureWebpack: { |
|
resolve: { |
|
alias: { |
|
'assets': '@/assets', |
|
'common': '@/common', |
|
'components': '@/components', |
|
'network': '@/network', |
|
'views': '@/views', |
|
'plugins': '@/plugins', |
|
} |
|
} |
|
}, |
|
devServer: { |
|
proxy: { |
|
'/api': { |
|
target: process.env.VUE_APP_BASE_URL, |
|
// 允许跨域 |
|
changeOrigin: true, |
|
ws: true, |
|
pathRewrite: { |
|
'^/api': '' |
|
} |
|
} |
|
} |
|
} |
|
}
|
|
|