module.exports = {
// 线上资源访问路径
publicPath: '/sczq',
lintOnSave: false,
devServer: {
// localhost
host: 'localhost', // ip
port: 8081, // 设置端口号
https: false, // https:{type:Boolean}
open: false, //配置自动启动浏览器
proxy: {
// 测试配置的代理
"/smi": {
target: 'https://testpop2.hnym.top',
pathRewrite: {
'^/smi/': '/smi/' // 重写请求,api/解析为/
},
changeOrigin: true
},
},}
}```
vue 线上资源访问路径
最新推荐文章于 2022-09-07 09:53:30 发布