fes.js/packages/fes-template/.fes.js

97 lines
2.0 KiB
JavaScript
Raw Normal View History

2020-12-22 17:54:46 +08:00
// .fes.js 只负责管理编译时配置只能使用plain Object
2020-11-02 09:51:40 +08:00
export default {
// exportStatic: {},
2020-12-23 15:52:22 +08:00
define: {
2022-01-04 16:19:17 +08:00
__DEV__: false
2020-12-23 15:52:22 +08:00
},
2022-01-04 16:19:17 +08:00
publicPath: './',
2021-03-03 15:10:55 +08:00
html: {
2022-01-04 16:19:17 +08:00
title: '海贼王'
2021-03-03 15:10:55 +08:00
},
router: {
mode: 'hash'
},
2020-12-14 20:38:01 +08:00
access: {
roles: {
2022-01-04 16:19:17 +08:00
admin: ['*'],
menuTest: ['/', '/menuTest']
2022-01-04 16:19:17 +08:00
}
2020-12-18 18:23:00 +08:00
},
2021-02-22 15:04:04 +08:00
request: {
2022-01-04 16:19:17 +08:00
dataField: 'result'
2021-02-22 15:04:04 +08:00
},
2021-02-04 13:43:16 +08:00
mock: {
2022-01-04 16:19:17 +08:00
prefix: '/v2'
2021-02-04 13:43:16 +08:00
},
proxy: {
2022-01-04 16:19:17 +08:00
'/v2': {
target: 'https://api.douban.com/',
changeOrigin: true
}
2021-02-04 13:43:16 +08:00
},
layout: {
2022-01-04 16:19:17 +08:00
title: 'Fes.js',
footer: 'Created by MumbleFE',
multiTabs: false,
navigation: 'side',
2022-01-04 16:19:17 +08:00
theme: 'dark',
menus: [
{
2022-01-04 16:19:17 +08:00
name: 'index',
icon: '/wine-outline.svg',
match: ['/route/*']
},
{
2022-01-04 16:19:17 +08:00
name: 'store'
},
{
2022-01-04 16:19:17 +08:00
name: 'editor',
icon: '/wine-outline.svg'
},
{
title: '$externalLink',
icon: 'UserOutlined',
path: 'https://www.baidu.com'
},
{
name: 'mock'
},
{
title: '菜单权限测试',
children: [
{
2022-01-04 16:19:17 +08:00
title: '子菜单',
path: '/menuTest'
},
2022-01-04 16:19:17 +08:00
]
},
2022-01-04 16:19:17 +08:00
{
name: 'cssModule'
2022-02-02 22:04:01 +08:00
},
{
name: 'pinia'
}
2022-01-04 16:19:17 +08:00
]
},
locale: {
2022-01-04 16:19:17 +08:00
legacy: true
},
2020-12-19 15:59:38 +08:00
devServer: {
2022-01-04 16:19:17 +08:00
port: 8080
2021-01-25 16:22:14 +08:00
},
enums: {
status: [
2022-01-04 16:19:17 +08:00
['0', '无效的'],
['1', '有效的']
]
},
vuex: {
2022-01-04 16:19:17 +08:00
strict: true
},
dynamicImport: true,
monacoEditor: {
2021-07-27 16:23:00 +08:00
languages: ['javascript', 'typescript', 'html', 'json']
}
2020-11-02 09:51:40 +08:00
};