fes.js/packages/fes-template/.fes.js
2021-03-01 12:32:29 +08:00

54 lines
986 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// .fes.js 只负责管理编译时配置只能使用plain Object
export default {
base: '/foo/',
define: {
__DEV__: false
},
publicPath: '/',
access: {
roles: {
admin: ["/", "/onepiece", '/store']
}
},
request: {
dataField: 'result'
},
mock: {
prefix: '/v2'
},
proxy: {
'/v2': {
'target': 'https://api.douban.com/',
'changeOrigin': true,
},
},
layout: {
title: "Fes.js",
footer: 'Created by MumbelFe',
multiTabs: false,
menus: [{
name: 'index'
}, {
name: 'onepiece'
}, {
name: 'store'
}, {
name: 'simpleList'
}]
},
locale: {
legacy: true
},
devServer: {
port: 8080
},
enums: {
status: [['0', '无效的'], ['1', '有效的']]
},
vuex: {
strict: true
}
};