From 6d6c7f107e8606ac0ae03ef3f7b73a06a62b45d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=86=E7=B1=B3=E8=8A=B1?= <417727563@qq.com> Date: Tue, 17 Jan 2023 16:29:18 +0800 Subject: [PATCH] =?UTF-8?q?2023-01-17-pom=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/babel.config.js | 1 + ant-design-vue-jeecg/package.json | 2 +- ant-design-vue-jeecg/vue.config.js | 32 +++++++++++++++++++- jeecg-boot/jeecg-boot-module-process/pom.xml | 5 +++ jeecg-boot/jeecg-boot-module-system/pom.xml | 16 +++++++--- jeecg-boot/pom.xml | 1 + 6 files changed, 50 insertions(+), 7 deletions(-) diff --git a/ant-design-vue-jeecg/babel.config.js b/ant-design-vue-jeecg/babel.config.js index bef7ac49..7fba455d 100644 --- a/ant-design-vue-jeecg/babel.config.js +++ b/ant-design-vue-jeecg/babel.config.js @@ -4,3 +4,4 @@ module.exports = { { useBuiltIns: 'entry' }] ] } + diff --git a/ant-design-vue-jeecg/package.json b/ant-design-vue-jeecg/package.json index b1b83cdb..49a2b6b6 100644 --- a/ant-design-vue-jeecg/package.json +++ b/ant-design-vue-jeecg/package.json @@ -121,4 +121,4 @@ "last 2 versions", "not ie <= 10" ] -} +} \ No newline at end of file diff --git a/ant-design-vue-jeecg/vue.config.js b/ant-design-vue-jeecg/vue.config.js index 90e51e82..4b574668 100644 --- a/ant-design-vue-jeecg/vue.config.js +++ b/ant-design-vue-jeecg/vue.config.js @@ -1,4 +1,6 @@ const path = require('path') + //YU 优化 解决webpack打包后chunk.js 数量过多,影响加载速度问题(Jeecg) + const webpack = require('webpack') const CompressionPlugin = require("compression-webpack-plugin") function resolve(dir) { @@ -14,7 +16,6 @@ */ // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 productionSourceMap: false, - //打包app时放开该配置 //publicPath:'./', configureWebpack: config => { @@ -31,17 +32,37 @@ "maxAssetSize": 30000000 } } + // config.externals = { + // 'vue': 'Vue', + // 'vuex': 'Vuex', + // 'vue-router': 'VueRouter', + // 'axios':'axios', + // }; + }, chainWebpack: (config) => { // YU-优化 config.plugins.delete('prefetch') + // YU-优化 只保留中文语言包 + config.plugin('ContextReplacementPlugin').use(webpack.ContextReplacementPlugin, [/moment[/\\]locale$/, /zh-cn/]) config.resolve.alias .set('@$', resolve('src')) .set('@api', resolve('src/api')) .set('@assets', resolve('src/assets')) .set('@comp', resolve('src/components')) .set('@views', resolve('src/views')) + //.set('@ant-design/icons/lib/dist$',resolve("src/icons.js")) + + + // YU-优化 包 + // config.set('externals', { + // 'vue': 'Vue', + // 'vuex': 'Vuex', + // 'vue-router': 'VueRouter', + // 'axios':'axios', + // }) + //生产环境,开启js\css压缩 if (process.env.NODE_ENV === 'production') { @@ -51,6 +72,15 @@ deleteOriginalAssets: false // 不删除源文件 })) } + // YU-优化 + // 限制打包的个数(减少打包生成的js文件和css文件) + //在合并chunk时,webpack会尝试识别出具有重复模块的chunk,并优先进行合并。任何模块都不会被合并到entry chunk中,以免影响初始页面加载时间 + //maxChunks:使用大于或等于 1 的值,来限制 chunk 的最大数量。使用 1 防止添加任何其他额外的 chunk,这是因为 entry/main chunk 也会包含在计数之中。 + //minChunkSize: 设置 chunk 的最小大小。 + // config.plugin('chunkPlugin').use(webpack.optimize.LimitChunkCountPlugin, [{ + // maxChunks: 10, + // minChunkSize: 10000 + // }]) // 配置 webpack 识别 markdown 为普通的文件 config.module diff --git a/jeecg-boot/jeecg-boot-module-process/pom.xml b/jeecg-boot/jeecg-boot-module-process/pom.xml index 8a2c3f12..331d464c 100644 --- a/jeecg-boot/jeecg-boot-module-process/pom.xml +++ b/jeecg-boot/jeecg-boot-module-process/pom.xml @@ -20,6 +20,11 @@ 2.4.5 compile + + org.jeecgframework.boot + jeecg-boot-module-erp + 2.4.5 + diff --git a/jeecg-boot/jeecg-boot-module-system/pom.xml b/jeecg-boot/jeecg-boot-module-system/pom.xml index 39777f60..656d8d8f 100644 --- a/jeecg-boot/jeecg-boot-module-system/pom.xml +++ b/jeecg-boot/jeecg-boot-module-system/pom.xml @@ -59,11 +59,12 @@ jeecg-boot-module-process ${jeecgboot.version} - - org.jeecgframework.boot - jeecg-boot-module-activiti - ${jeecgboot.version} - + + + + + + org.jeecgframework.boot jeecg-boot-module-orderbymakeclothplan @@ -133,6 +134,11 @@ spring-test 5.2.4.RELEASE + + + org.jeecgframework.boot + jeecg-boot-starter-job + diff --git a/jeecg-boot/pom.xml b/jeecg-boot/pom.xml index c5b129cf..a8fa6bf5 100644 --- a/jeecg-boot/pom.xml +++ b/jeecg-boot/pom.xml @@ -101,6 +101,7 @@ spring-boot-starter-test test + org.projectlombok