2020-12-22 17:54:46 +08:00
|
|
|
|
// .fes.js 只负责管理编译时配置,只能使用plain Object
|
2020-11-02 09:51:40 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
2021-11-03 14:45:44 +08:00
|
|
|
|
exportStatic: {},
|
2021-04-02 17:07:10 +08:00
|
|
|
|
base: "/base/",
|
2020-12-23 15:52:22 +08:00
|
|
|
|
define: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
__DEV__: false,
|
2020-12-23 15:52:22 +08:00
|
|
|
|
},
|
2021-11-03 14:45:44 +08:00
|
|
|
|
publicPath: "./",
|
2021-03-03 15:10:55 +08:00
|
|
|
|
html: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
title: "海贼王",
|
2021-03-03 15:10:55 +08:00
|
|
|
|
},
|
2021-03-29 10:48:09 +08:00
|
|
|
|
router: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
mode: "history",
|
2021-03-29 10:48:09 +08:00
|
|
|
|
},
|
2020-12-14 20:38:01 +08:00
|
|
|
|
access: {
|
|
|
|
|
roles: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
admin: ["*"],
|
2021-08-20 10:08:58 +08:00
|
|
|
|
menuTest: ['/', '/onepiece', '/store'],
|
2021-04-02 17:07:10 +08:00
|
|
|
|
},
|
2020-12-18 18:23:00 +08:00
|
|
|
|
},
|
2021-02-22 15:04:04 +08:00
|
|
|
|
request: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
dataField: "result",
|
2021-02-22 15:04:04 +08:00
|
|
|
|
},
|
2021-02-04 13:43:16 +08:00
|
|
|
|
mock: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
prefix: "/v2",
|
2021-02-04 13:43:16 +08:00
|
|
|
|
},
|
|
|
|
|
proxy: {
|
2021-04-02 17:07:10 +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: {
|
|
|
|
|
title: "Fes.js",
|
2021-04-02 17:07:10 +08:00
|
|
|
|
footer: "Created by MumbleFe",
|
2021-03-03 15:10:35 +08:00
|
|
|
|
multiTabs: false,
|
2021-04-02 17:07:10 +08:00
|
|
|
|
navigation: "mixin",
|
2021-05-19 21:07:21 +08:00
|
|
|
|
theme: 'light',
|
2021-04-02 17:07:10 +08:00
|
|
|
|
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",
|
|
|
|
|
},
|
|
|
|
|
],
|
2021-07-22 20:46:49 +08:00
|
|
|
|
},{
|
|
|
|
|
name: 'editor',
|
|
|
|
|
icon: "/wine-outline.svg"
|
|
|
|
|
}
|
2021-04-02 17:07:10 +08:00
|
|
|
|
],
|
2021-03-03 15:10:35 +08:00
|
|
|
|
},
|
2021-01-14 19:09:59 +08:00
|
|
|
|
locale: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
legacy: true,
|
2021-01-14 19:09:59 +08:00
|
|
|
|
},
|
2020-12-19 15:59:38 +08:00
|
|
|
|
devServer: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
port: 8080,
|
2021-01-25 16:22:14 +08:00
|
|
|
|
},
|
|
|
|
|
enums: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
status: [
|
|
|
|
|
["0", "无效的"],
|
|
|
|
|
["1", "有效的"],
|
|
|
|
|
],
|
2021-02-04 21:36:51 +08:00
|
|
|
|
},
|
|
|
|
|
vuex: {
|
2021-04-02 17:07:10 +08:00
|
|
|
|
strict: true,
|
2021-03-04 19:48:07 +08:00
|
|
|
|
},
|
2021-04-02 17:07:10 +08:00
|
|
|
|
dynamicImport: true,
|
2021-06-08 14:49:00 +08:00
|
|
|
|
extraBabelPlugins: [
|
|
|
|
|
['import', { libraryName: 'ant-design-vue', libraryDirectory: 'es', style: 'css' }, 'ant-design-vue'],
|
2021-07-22 20:46:49 +08:00
|
|
|
|
],
|
|
|
|
|
monacoEditor: {
|
2021-07-27 16:23:00 +08:00
|
|
|
|
languages: ['javascript', 'typescript', 'html', 'json']
|
2021-07-22 20:46:49 +08:00
|
|
|
|
}
|
2020-11-02 09:51:40 +08:00
|
|
|
|
};
|