2022-06-22 19:24:49 +08:00
|
|
|
import { defineBuildConfig } from '@fesjs/fes'
|
|
|
|
export default defineBuildConfig({
|
2022-01-05 11:12:09 +08:00
|
|
|
// 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
|
|
|
},
|
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
|
|
|
},
|
2021-03-29 10:48:09 +08:00
|
|
|
router: {
|
2022-01-05 16:38:02 +08:00
|
|
|
mode: 'hash'
|
2021-03-29 10:48:09 +08:00
|
|
|
},
|
2022-04-18 13:31:47 +08:00
|
|
|
watermark: {
|
|
|
|
disabled: false
|
|
|
|
},
|
2020-12-14 20:38:01 +08:00
|
|
|
access: {
|
|
|
|
roles: {
|
2022-01-04 16:19:17 +08:00
|
|
|
admin: ['*'],
|
2022-01-05 11:12:09 +08:00
|
|
|
menuTest: ['/', '/menuTest']
|
2022-01-04 16:19:17 +08:00
|
|
|
}
|
2020-12-18 18:23:00 +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
|
|
|
},
|
2021-03-03 15:10:35 +08:00
|
|
|
layout: {
|
2022-01-04 16:19:17 +08:00
|
|
|
title: 'Fes.js',
|
|
|
|
footer: 'Created by MumbleFE',
|
|
|
|
multiTabs: false,
|
2022-02-22 19:02:43 +08:00
|
|
|
navigation: 'side',
|
2022-01-04 16:19:17 +08:00
|
|
|
theme: 'dark',
|
2021-04-02 17:07:10 +08:00
|
|
|
menus: [
|
|
|
|
{
|
2022-01-04 16:19:17 +08:00
|
|
|
name: 'index',
|
2022-01-05 16:38:02 +08:00
|
|
|
icon: '/wine-outline.svg',
|
|
|
|
match: ['/route/*']
|
2021-04-02 17:07:10 +08:00
|
|
|
},
|
|
|
|
{
|
2022-01-04 16:19:17 +08:00
|
|
|
name: 'store'
|
2021-04-02 17:07:10 +08:00
|
|
|
},
|
|
|
|
{
|
2022-01-04 16:19:17 +08:00
|
|
|
name: 'editor',
|
|
|
|
icon: '/wine-outline.svg'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '$externalLink',
|
|
|
|
icon: 'UserOutlined',
|
|
|
|
path: 'https://www.baidu.com'
|
2021-04-02 17:07:10 +08:00
|
|
|
},
|
|
|
|
{
|
2022-01-05 11:12:09 +08:00
|
|
|
name: 'mock'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '菜单权限测试',
|
2021-04-02 17:07:10 +08:00
|
|
|
children: [
|
|
|
|
{
|
2022-01-04 16:19:17 +08:00
|
|
|
title: '子菜单',
|
2022-01-05 11:12:09 +08:00
|
|
|
path: '/menuTest'
|
2021-04-02 17:07:10 +08:00
|
|
|
},
|
2022-01-04 16:19:17 +08:00
|
|
|
]
|
2022-01-05 11:12:09 +08:00
|
|
|
},
|
2022-01-04 16:19:17 +08:00
|
|
|
{
|
|
|
|
name: 'cssModule'
|
2022-02-02 22:04:01 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'pinia'
|
2022-07-18 15:33:27 +08:00
|
|
|
},
|
2022-04-11 19:40:16 +08:00
|
|
|
],
|
2022-06-22 14:25:47 +08:00
|
|
|
menuProps: {
|
2022-04-11 19:40:16 +08:00
|
|
|
defaultExpandAll: false
|
|
|
|
}
|
2021-03-03 15:10:35 +08:00
|
|
|
},
|
2021-01-14 19:09:59 +08:00
|
|
|
locale: {
|
2022-01-04 16:19:17 +08:00
|
|
|
legacy: true
|
2021-01-14 19:09:59 +08:00
|
|
|
},
|
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: {
|
2021-04-02 17:07:10 +08:00
|
|
|
status: [
|
2022-01-04 16:19:17 +08:00
|
|
|
['0', '无效的'],
|
|
|
|
['1', '有效的']
|
|
|
|
]
|
2021-02-04 21:36:51 +08:00
|
|
|
},
|
|
|
|
vuex: {
|
2022-01-04 16:19:17 +08:00
|
|
|
strict: true
|
2021-03-04 19:48:07 +08:00
|
|
|
},
|
2021-04-02 17:07:10 +08:00
|
|
|
dynamicImport: true,
|
2021-07-22 20:46:49 +08:00
|
|
|
monacoEditor: {
|
2021-07-27 16:23:00 +08:00
|
|
|
languages: ['javascript', 'typescript', 'html', 'json']
|
2022-05-11 17:50:20 +08:00
|
|
|
},
|
|
|
|
presets: [
|
2022-05-12 10:50:53 +08:00
|
|
|
require.resolve('../fes-builder-webpack/lib'),
|
2022-05-11 17:50:20 +08:00
|
|
|
]
|
2022-06-22 19:24:49 +08:00
|
|
|
});
|