mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-02 19:58:18 +08:00
44 lines
760 B
JavaScript
44 lines
760 B
JavaScript
// .fes.js 只负责管理编译时配置,只能使用plain Object
|
||
|
||
|
||
export default {
|
||
base: '/foo/',
|
||
define: {
|
||
__DEV__: false
|
||
},
|
||
html: {
|
||
title: '海贼王'
|
||
},
|
||
publicPath: '/',
|
||
access: {
|
||
roles: {
|
||
admin: ["/", "/onepiece", '/store']
|
||
}
|
||
},
|
||
request: {
|
||
dataField: 'result'
|
||
},
|
||
mock: {
|
||
prefix: '/v2'
|
||
},
|
||
proxy: {
|
||
'/v2': {
|
||
'target': 'https://api.douban.com/',
|
||
'changeOrigin': true,
|
||
},
|
||
},
|
||
layout: false,
|
||
locale: {
|
||
legacy: true
|
||
},
|
||
devServer: {
|
||
port: 8080
|
||
},
|
||
enums: {
|
||
status: [['0', '无效的'], ['1', '有效的']]
|
||
},
|
||
vuex: {
|
||
strict: true
|
||
}
|
||
};
|