vue.config.js
851 Bytes
// module.exports = {
// // 配置路径别名
// configureWebpack: {
// devServer: {
// // 调试时允许内网穿透,让外网的人访问到本地调试的H5页面
// disableHostCheck: true,
// // /本地调试时打开
// port: '18082', //代理端口,不固定8222,可以是其他的
// open: false, //项目启动时是否自动打开浏览器
// proxy: {
// '/api': {
// target: 'http://172.17.56.37/api', //测试接口地址
// // target: 'http://172.17.56.16/api', //正式接口地址
// // ws:true, //允许ws跨域
// secure:true, //类型:https=false http=true
// changeOrigin: true, //是否跨域
// pathRewrite:{ // 重写路径
// '^/api':''
// }
// }
// },
// // /本地调试时打开
// }
// },
// productionSourceMap: false,
// }