cpnode-front/.fes.js

42 lines
715 B
JavaScript
Raw Normal View History

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 {
publicPath: './',
2021-12-27 07:06:11 +00:00
alias: {
'~': '/src',
},
access: {
roles: {
admin: ['*'],
manager: ['/'],
2021-12-26 09:14:46 +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'],
},
])
},
}