web-africa-pc/vue.config.js

56 lines
976 B
JavaScript
Raw Permalink Normal View History

2025-03-21 14:46:08 +08:00
/*
2025-08-15 13:54:53 +08:00
* @Descripttion:
* @version:
2025-03-21 14:46:08 +08:00
* @Author: kBank
* @Date: 2022-09-29 10:04:55
*/
// 引入等比适配插件
2025-08-15 13:54:53 +08:00
const px2rem = require("postcss-px2rem");
2025-03-21 14:46:08 +08:00
// 配置基本大小
const postcss = px2rem({
// 基准大小 baseSize需要和rem.js中相同
2025-08-15 13:54:53 +08:00
remUnit: 16,
});
2025-03-21 14:46:08 +08:00
// 使用等比适配插件
module.exports = {
lintOnSave: false,
2025-08-15 13:54:53 +08:00
devServer: {
port: 8866,
proxy: {
"/prod-api": {
target: "http://localhost:8080",
changeOrigin: true,
pathRewrite: {
"^/prod-api": "",
},
},
},
},
2025-03-21 14:46:08 +08:00
css: {
loaderOptions: {
postcss: {
2025-08-15 13:54:53 +08:00
plugins: [postcss],
},
},
2025-03-21 14:46:08 +08:00
},
configureWebpack: {
externals: {
2025-08-15 13:54:53 +08:00
enUS: "enUS",
zhCN: "zhCN",
zhTC: "zhTC",
ruRU: "ruRU",
frFR: "frFR",
ptPT: "ptPT",
2025-03-21 14:46:08 +08:00
},
},
2025-08-15 13:54:53 +08:00
chainWebpack: (config) => {
config.plugin("html").tap((args) => {
args[0].title = "会员系统";
return args;
});
},
};