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
|
2023-12-05 09:35:53 +08:00
|
|
|
})
|
|
|
|
]
|
2022-11-14 16:31:47 +08:00
|
|
|
},
|
|
|
|
devServer: {
|
|
|
|
proxy: {
|
2022-11-29 14:18:34 +08:00
|
|
|
"/dev-api": {
|
|
|
|
target: "http://localhost:8000",
|
2023-12-05 09:35:53 +08:00
|
|
|
changeOrigin: true
|
2022-11-29 14:18:34 +08:00
|
|
|
},
|
2023-05-05 15:47:49 +08:00
|
|
|
"/api": {
|
|
|
|
target: "http://81.68.90.198:8088",
|
|
|
|
changeOrigin: true,
|
|
|
|
pathRewrite: {
|
2023-12-05 09:35:53 +08:00
|
|
|
"^/api": "" // 假设我们想把 localhost:8888/api/login 变成www.baidu.com/login 就需要这么做 js把路径中的/api去掉
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
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: "./",
|
2023-12-05 09:35:53 +08:00
|
|
|
assetsDir: "../apps/com.awspaas.user.apps.cmp/screen"
|
2022-11-29 14:18:34 +08:00
|
|
|
});
|