万纯 d5bfc61b01 feat: 优化getConfigFile和hardSourePlugin
1. getConfigFile函数直接拿到所有配置文件,包含env和local
2. hardSourcePlugin会监听configFile的变化,更新缓存
2021-02-05 11:43:24 +08:00

35 lines
630 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// .fes.js 只负责管理编译时配置只能使用plain Object
export default {
base: '/foo/',
define: {
__DEV__: false
},
publicPath: '/',
access: {
roles: {
admin: ["/", "/onepiece"]
}
},
layout: {
title: "Fes.js",
footer: 'Created by MumbelFe',
multiTabs: false,
menus: [{
name: 'index'
}, {
name: 'onepiece'
}]
},
locale: {
legacy: true
},
devServer: {
port: 8080
},
enums: {
status: [['0', '无效的'], ['1', '有效的']]
}
};