web-base-pc/vue.config.js

54 lines
1004 B
JavaScript
Raw Permalink Normal View History

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