mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-04 04:37:43 +08:00
ba73ac7ff7
* fix: 路由生成支持全数字 * fix: 路由生成支持全数字 * fix: 优化 layout ts * chore: remove 403 404 page route config
101 lines
2.1 KiB
JavaScript
101 lines
2.1 KiB
JavaScript
import { defineBuildConfig } from '@fesjs/fes'
|
|
export default defineBuildConfig({
|
|
// exportStatic: {},
|
|
define: {
|
|
__DEV__: false
|
|
},
|
|
html: {
|
|
title: '海贼王'
|
|
},
|
|
router: {
|
|
mode: 'hash'
|
|
},
|
|
watermark: {
|
|
disabled: false
|
|
},
|
|
access: {
|
|
roles: {
|
|
admin: ['*'],
|
|
menuTest: ['/', '/menuTest']
|
|
}
|
|
},
|
|
mock: {
|
|
prefix: '/v2'
|
|
},
|
|
proxy: {
|
|
'/v2': {
|
|
target: 'https://api.douban.com/',
|
|
changeOrigin: true
|
|
}
|
|
},
|
|
layout: {
|
|
title: 'Fes.js',
|
|
footer: 'Created by MumbleFE',
|
|
multiTabs: false,
|
|
navigation: 'side',
|
|
theme: 'dark',
|
|
menus: [
|
|
{
|
|
name: 'index',
|
|
icon: '/wine-outline.svg',
|
|
match: ['/route/*']
|
|
},
|
|
{
|
|
name: 'store'
|
|
},
|
|
{
|
|
name: 'editor',
|
|
icon: '/wine-outline.svg'
|
|
},
|
|
{
|
|
title: '$externalLink',
|
|
icon: 'UserOutlined',
|
|
path: 'https://www.baidu.com'
|
|
},
|
|
{
|
|
name: 'mock'
|
|
},
|
|
{
|
|
title: '菜单权限测试',
|
|
children: [
|
|
{
|
|
title: '子菜单',
|
|
path: '/menuTest'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: 'cssModule'
|
|
},
|
|
{
|
|
name: 'pinia'
|
|
},
|
|
],
|
|
menuProps: {
|
|
defaultExpandAll: false
|
|
}
|
|
},
|
|
locale: {
|
|
legacy: true
|
|
},
|
|
devServer: {
|
|
port: 8080
|
|
},
|
|
enums: {
|
|
status: [
|
|
['0', '无效的'],
|
|
['1', '有效的']
|
|
]
|
|
},
|
|
vuex: {
|
|
strict: true
|
|
},
|
|
dynamicImport: true,
|
|
monacoEditor: {
|
|
languages: ['javascript', 'typescript', 'html', 'json']
|
|
},
|
|
presets: [
|
|
require.resolve('../fes-builder-webpack/lib'),
|
|
]
|
|
});
|