chore(env): update env
This commit is contained in:
parent
17de06378b
commit
edc69ae054
|
@ -1,7 +1,7 @@
|
||||||
# just a flag
|
# just a flag
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = 'http://f.hzs413.com/inter-api/'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
|
|
||||||
VUE_APP_BASE_INTERAPI = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/online/language'
|
VUE_APP_BASE_INTERAPI = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/online/language'
|
||||||
VUE_APP_BASE_INTERAPI2 = 'http://f.hzs413.com/language'
|
VUE_APP_BASE_INTERAPI2 = 'http://f.hzs413.com/language'
|
|
@ -2,7 +2,7 @@
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = '/inter-api'
|
VUE_APP_BASE_API = '/prod-api'
|
||||||
VUE_APP_BASE_API1 = 'http://index.hzs413.com'
|
VUE_APP_BASE_API1 = 'http://index.hzs413.com'
|
||||||
|
|
||||||
VUE_APP_BASE_INTERAPI = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language'
|
VUE_APP_BASE_INTERAPI = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language'
|
||||||
|
|
|
@ -1,46 +1,55 @@
|
||||||
/*
|
/*
|
||||||
* @Descripttion:
|
* @Descripttion:
|
||||||
* @version:
|
* @version:
|
||||||
* @Author: kBank
|
* @Author: kBank
|
||||||
* @Date: 2022-09-29 10:04:55
|
* @Date: 2022-09-29 10:04:55
|
||||||
*/
|
*/
|
||||||
// 引入等比适配插件
|
// 引入等比适配插件
|
||||||
const px2rem = require('postcss-px2rem')
|
const px2rem = require("postcss-px2rem");
|
||||||
|
|
||||||
// 配置基本大小
|
// 配置基本大小
|
||||||
const postcss = px2rem({
|
const postcss = px2rem({
|
||||||
// 基准大小 baseSize,需要和rem.js中相同
|
// 基准大小 baseSize,需要和rem.js中相同
|
||||||
remUnit: 16
|
remUnit: 16,
|
||||||
})
|
});
|
||||||
|
|
||||||
// 使用等比适配插件
|
// 使用等比适配插件
|
||||||
module.exports = {
|
module.exports = {
|
||||||
lintOnSave: false,
|
lintOnSave: false,
|
||||||
|
devServer: {
|
||||||
|
port: 8866,
|
||||||
|
proxy: {
|
||||||
|
"/prod-api": {
|
||||||
|
target: "http://localhost:8080",
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: {
|
||||||
|
"^/prod-api": "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
css: {
|
css: {
|
||||||
loaderOptions: {
|
loaderOptions: {
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [
|
plugins: [postcss],
|
||||||
postcss
|
},
|
||||||
]
|
},
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
externals: {
|
externals: {
|
||||||
'enUS': 'enUS',
|
enUS: "enUS",
|
||||||
'zhCN': 'zhCN',
|
zhCN: "zhCN",
|
||||||
'zhTC': 'zhTC',
|
zhTC: "zhTC",
|
||||||
'ruRU':'ruRU',
|
ruRU: "ruRU",
|
||||||
'frFR':'frFR',
|
frFR: "frFR",
|
||||||
'ptPT':'ptPT',
|
ptPT: "ptPT",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
chainWebpack: config => {
|
chainWebpack: (config) => {
|
||||||
config
|
config.plugin("html").tap((args) => {
|
||||||
.plugin('html')
|
args[0].title = "会员系统";
|
||||||
.tap(args => {
|
return args;
|
||||||
args[0].title = '会员系统'
|
});
|
||||||
return args
|
},
|
||||||
})
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue