加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vite.config.js.timestamp-1732765310128-ab532f292c329.mjs 4.45 KB
一键复制 编辑 原始数据 按行查看 历史
清风 提交于 2024-11-28 11:41 . tj
// vite.config.js
import { defineConfig } from "file:///C:/Users/12443/Desktop/%E6%B5%8B%E8%AF%95%E4%BB%A3%E7%A0%81/vue3-template/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/12443/Desktop/%E6%B5%8B%E8%AF%95%E4%BB%A3%E7%A0%81/vue3-template/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
var __vite_injected_original_dirname = "C:\\Users\\12443\\Desktop\\\u6D4B\u8BD5\u4EE3\u7801\\vue3-template";
var vite_config_default = defineConfig({
plugins: [vue()],
server: {
host: "0.0.0.0",
open: false,
port: 5174,
proxy: {
"/api1": {
target: "https://bang.360.cn",
// 热门城市的API
changeOrigin: true,
//支持跨域
// ws: true,
rewrite: (path) => path.replace(/^\/api1/, "")
//重写路径,替换/api
},
"/api2": {
target: "https://restapi.amap.com",
// 输入城市获取地址的API
changeOrigin: true,
//支持跨域
// ws: true,
rewrite: (path) => path.replace(/^\/api2/, "")
//重写路径,替换/api
}
}
},
// ...其他配置项
optimizeDeps: {
include: ["jquery"]
},
resolve: {
alias: {
"@": resolve(__vite_injected_original_dirname, "src"),
"/images": "src/assets/images/"
}
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFwxMjQ0M1xcXFxEZXNrdG9wXFxcXFx1NkQ0Qlx1OEJENV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