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

79 lines
1.7 KiB
JavaScript
Raw Normal View History

2022-12-07 10:20:39 +08:00
import { defineBuildConfig } from '@fesjs/fes';
2022-04-02 19:29:38 +08:00
2022-11-10 17:48:34 +08:00
export default defineBuildConfig({
builder: 'webpack',
define: {
2022-12-07 10:20:39 +08:00
__DEV__: false,
},
title: '海贼王',
router: {
2022-12-07 10:20:39 +08:00
mode: 'hash',
},
access: {
roles: {
admin: ['*'],
2022-12-07 10:20:39 +08:00
menuTest: ['/', '/menuTest'],
},
2022-04-03 19:26:49 +08:00
},
mock: {
2022-12-07 10:20:39 +08:00
prefix: '/v2',
},
proxy: {
'/v2': {
target: 'https://api.douban.com/',
2022-12-07 10:20:39 +08:00
changeOrigin: true,
},
},
layout: {
title: 'Fes.js',
footer: 'Created by MumbleFE',
multiTabs: false,
navigation: 'side',
theme: 'dark',
menus: [
{
name: 'index',
icon: '/wine-outline.svg',
2022-12-07 10:20:39 +08:00
match: ['/route/*'],
},
{
name: 'editor',
2022-12-07 10:20:39 +08:00
icon: '/wine-outline.svg',
},
{
title: '$externalLink',
icon: 'UserOutlined',
2022-12-07 10:20:39 +08:00
path: 'https://www.baidu.com',
},
{
2022-12-07 10:20:39 +08:00
name: 'mock',
},
{
title: '菜单权限测试',
children: [
{
title: '子菜单',
2022-12-07 10:20:39 +08:00
path: '/menuTest',
},
2022-12-07 10:20:39 +08:00
],
},
{
2022-12-07 10:20:39 +08:00
name: 'cssModule',
},
{
2022-12-07 10:20:39 +08:00
name: 'pinia',
},
],
},
enums: {
status: [
['0', '无效的'],
2022-12-07 10:20:39 +08:00
['1', '有效的'],
],
},
dynamicImport: true,
monacoEditor: {
2022-12-07 10:20:39 +08:00
languages: ['javascript', 'typescript', 'html', 'json'],
2022-11-10 17:48:34 +08:00
},
});