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

95 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: {},
base: "/base/",
2020-12-23 15:52:22 +08:00
define: {
__DEV__: false,
2020-12-23 15:52:22 +08:00
},
publicPath: "./",
2021-03-03 15:10:55 +08:00
html: {
title: "海贼王",
2021-03-03 15:10:55 +08:00
},
router: {
mode: "history",
},
2020-12-14 20:38:01 +08:00
access: {
roles: {
admin: ["*"],
menuTest: ['/', '/onepiece', '/store'],
},
2020-12-18 18:23:00 +08:00
},
2021-02-22 15:04:04 +08:00
request: {
dataField: "result",
2021-02-22 15:04:04 +08:00
},
2021-02-04 13:43:16 +08:00
mock: {
prefix: "/v2",
2021-02-04 13:43:16 +08:00
},
proxy: {
"/v2": {
target: "https://api.douban.com/",
changeOrigin: true,
2021-02-04 13:43:16 +08:00
},
},
layout: {
title: "Fes.js",
footer: "Created by MumbleFe",
multiTabs: false,
navigation: "mixin",
theme: 'light',
menus: [
{
name: "index",
icon: "/wine-outline.svg",
},
{
name: "onepiece",
icon: "user",
path: "https://www.baidu.com",
},
{
title: "abcd",
children: [
{
name: "store",
},
],
},
{
// name: "setting",
title: "setting",
children: [
{
name: "test",
},
],
},{
name: 'editor',
icon: "/wine-outline.svg"
}
],
},
locale: {
legacy: true,
},
2020-12-19 15:59:38 +08:00
devServer: {
port: 8080,
2021-01-25 16:22:14 +08:00
},
enums: {
status: [
["0", "无效的"],
["1", "有效的"],
],
},
vuex: {
strict: true,
},
dynamicImport: true,
2021-06-08 14:49:00 +08:00
extraBabelPlugins: [
['import', { libraryName: 'ant-design-vue', libraryDirectory: 'es', style: 'css' }, 'ant-design-vue'],
],
monacoEditor: {
2021-07-27 16:23:00 +08:00
languages: ['javascript', 'typescript', 'html', 'json']
}
2020-11-02 09:51:40 +08:00
};