代码拉取完成,页面将自动刷新
/*
* @Author: your name
* @Date: 2021-11-28 01:41:11
* @LastEditTime: 2021-12-29 12:17:05
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \vue3ts\vue3\vue.config.js
*/
const title = "清华大学北体育馆可视化运营平台";
module.exports = {
publicPath: "/",
devServer: {
// 配置服务器
open: true,
// 项目运行时候的端口号
port: 8080,
// https: false,
disableHostCheck: true,
overlay: {
warnings: true,
errors: true,
},
proxy: {
"/api": {
target: "http://120.77.174.86:8200/",
changeOrigin: true,
pathRewrite: {
"^/api": "",
},
},
"/WeatherId": {
target: "https://geoapi.qweather.com/",
changeOrigin: true,
pathRewrite: {
"^/WeatherId": "",
},
},
"/WeatherData": {
target: "https://devapi.qweather.com/",
changeOrigin: true,
pathRewrite: {
"^/WeatherData": "",
},
},
},
},
chainWebpack: (config) => {
config.plugin("html").tap((args) => {
args[0].title = title;
return args;
});
if (process.env.NODE_ENV === "production") {
//生产包取消console debugger打印
config.optimization.minimizer("terser").tap((args) => {
args[0].terserOptions.compress.drop_console = true;
args[0].terserOptions.compress.drop_debugger = true;
args[0].terserOptions.compress.pure_funcs = ["console.log"];
args[0].terserOptions.output = {
comments: false,
};
return args;
});
}
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。