2021-12-26 09:14:46 +00:00
|
|
|
|
// .fes.js 只负责管理编译时配置,只能使用plain Object
|
2021-12-27 07:26:40 +00:00
|
|
|
|
import StylelintPlugin from 'stylelint-webpack-plugin'
|
2021-12-26 09:14:46 +00:00
|
|
|
|
|
|
|
|
|
export default {
|
2021-12-27 02:44:31 +00:00
|
|
|
|
publicPath: './',
|
2021-12-27 07:06:11 +00:00
|
|
|
|
alias: {
|
|
|
|
|
'~': '/src',
|
|
|
|
|
},
|
2021-12-27 02:44:31 +00:00
|
|
|
|
access: {
|
|
|
|
|
roles: {
|
|
|
|
|
admin: ['*'],
|
|
|
|
|
manager: ['/'],
|
2021-12-26 09:14:46 +00:00
|
|
|
|
},
|
2021-12-27 02:44:31 +00:00
|
|
|
|
},
|
|
|
|
|
layout: {
|
|
|
|
|
title: 'Fes.js',
|
|
|
|
|
footer: 'Created by MumbleFe',
|
|
|
|
|
multiTabs: false,
|
|
|
|
|
menus: [
|
|
|
|
|
{
|
|
|
|
|
name: 'index',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
devServer: {
|
|
|
|
|
port: 8000,
|
|
|
|
|
},
|
|
|
|
|
enums: {
|
|
|
|
|
status: [
|
|
|
|
|
['0', '无效的'],
|
|
|
|
|
['1', '有效的'],
|
|
|
|
|
],
|
|
|
|
|
},
|
2021-12-27 07:26:40 +00:00
|
|
|
|
chainWebpack(config) {
|
|
|
|
|
config.plugin('stylelint').use(StylelintPlugin, [
|
|
|
|
|
{
|
|
|
|
|
extensions: ['css', 'scss', 'vue', 'tsx'],
|
|
|
|
|
},
|
|
|
|
|
])
|
|
|
|
|
},
|
2021-12-27 02:44:31 +00:00
|
|
|
|
}
|