feat: 前端账权剥离完成 — 移除业务模块,保留账权 + 系统配置 + AI/LLM
- 删除 82 个业务页面(fei/trace/weight/tracing/irrigation/huoban 等 18 目录) - 删除 30+ 个业务 API 文件 - 删除业务组件(brain/tracing/MarkdownContent 原版) - 删除业务 Utils(ezviz/tracing/huoban/markdown/wangEdit) - 修改 8 个框架文件(router/main.js/request.js/store/vue.config.js/package.json/index.html/.gitignore) - 修复 9 个残留引用(TopHeader/iframeView/menuApi/permissionApi/home/login/customer/uiConfig) - 新建简化版 MarkdownContent.vue(使用 marked + highlight.js) - 保留 monaco-editor 依赖(AI 工具编辑器需要) - 添加 README.md - npm run build:prod 验证通过
This commit is contained in:
+5
-37
@@ -5,17 +5,14 @@ function resolve(dir) {
|
||||
return path.join(__dirname, dir)
|
||||
}
|
||||
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
|
||||
outputDir: "saas-web",
|
||||
outputDir: "authon-web",
|
||||
lintOnSave: false,
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
host: '0.0.0.0',
|
||||
port: 8201,
|
||||
public: 'saas.ape.ccoop.cc:99',
|
||||
open: 'http://localhost:8201/',
|
||||
disableHostCheck: true,
|
||||
compress: true,
|
||||
@@ -24,35 +21,25 @@ module.exports = {
|
||||
errors: true
|
||||
},
|
||||
proxy: {
|
||||
|
||||
'/api/user-service': {
|
||||
target: 'http://localhost:8202',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api/user-service': '/'
|
||||
}
|
||||
},
|
||||
'/n8n': {
|
||||
target: 'https://n8n.ccoop.cc',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/n8n': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
configureWebpack: {
|
||||
externals: {
|
||||
'vue': 'Vue',
|
||||
'vue-router': 'VueRouter',
|
||||
'vuex': 'Vuex',
|
||||
'element-ui': 'ELEMENT',
|
||||
'echarts': 'echarts',
|
||||
'axios': 'axios',
|
||||
'monaco-editor': 'monaco'
|
||||
'axios': 'axios'
|
||||
},
|
||||
name: '账权云平台 ',
|
||||
name: 'apes-Authon',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve('src')
|
||||
@@ -64,30 +51,12 @@ module.exports = {
|
||||
maxInitialRequests: Infinity,
|
||||
minSize: 20000,
|
||||
cacheGroups: {
|
||||
monaco: {
|
||||
name: 'chunk-monaco',
|
||||
test: /[\\/]node_modules[\\/](monaco-editor|vue-monaco)[\\/]/,
|
||||
priority: 40,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
elementUI: {
|
||||
name: 'chunk-element-ui',
|
||||
test: /[\\/]node_modules[\\/]element-ui[\\/]/,
|
||||
priority: 30,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
echarts: {
|
||||
name: 'chunk-echarts',
|
||||
test: /[\\/]node_modules[\\/]echarts[\\/]/,
|
||||
priority: 30,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
wangEditor: {
|
||||
name: 'chunk-wang-editor',
|
||||
test: /[\\/]node_modules[\\/]@wangeditor[\\/]/,
|
||||
priority: 30,
|
||||
reuseExistingChunk: true
|
||||
},
|
||||
vue: {
|
||||
name: 'chunk-vue',
|
||||
test: /[\\/]node_modules[\\/](vue|vue-router|vuex)[\\/]/,
|
||||
@@ -114,7 +83,6 @@ module.exports = {
|
||||
chainWebpack(config) {
|
||||
config.plugins.delete('preload')
|
||||
config.plugins.delete('prefetch')
|
||||
config.plugins.delete('optimize-css');
|
||||
|
||||
config.plugins.delete('optimize-css');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user