Files
data_visual/vue.config.js

30 lines
758 B
JavaScript
Raw Normal View History

2022-11-29 14:18:34 +08:00
const { defineConfig } = require("@vue/cli-service");
2022-09-23 09:43:24 +08:00
module.exports = defineConfig({
2022-11-14 16:31:47 +08:00
configureWebpack: {
plugins: [
2022-11-29 14:18:34 +08:00
require("unplugin-element-plus/webpack")({
2022-11-14 16:31:47 +08:00
// options
}),
],
},
devServer: {
proxy: {
2022-11-29 14:18:34 +08:00
"/dev-api": {
target: "http://localhost:8000",
changeOrigin: true,
},
2023-05-05 15:47:49 +08:00
"/api": {
target: "http://81.68.90.198:8088",
changeOrigin: true,
pathRewrite: {
"^/api": "", // 假设我们想把 localhost:8888/api/login 变成www.baidu.com/login 就需要这么做 js把路径中的/api去掉
},
},
2022-11-29 14:18:34 +08:00
},
2022-11-14 16:31:47 +08:00
},
2022-10-20 13:43:55 +08:00
transpileDependencies: true,
lintOnSave: false,
2023-05-22 10:08:21 +08:00
publicPath: "./",
assetsDir: "../apps/com.awspaas.user.apps.cmp/screen",
2022-11-29 14:18:34 +08:00
});