From b06f9bb21cec1c38bbf9bce5fddacb4e8daf8361 Mon Sep 17 00:00:00 2001 From: qianming Date: Mon, 30 Dec 2024 10:29:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=93=E5=8C=85=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/build/webpack.prod.conf.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/report-ui/build/webpack.prod.conf.js b/report-ui/build/webpack.prod.conf.js index 30d63783..d98d2fcf 100644 --- a/report-ui/build/webpack.prod.conf.js +++ b/report-ui/build/webpack.prod.conf.js @@ -97,20 +97,11 @@ const webpackConfig = merge(baseWebpackConfig, { // keep module.id stable when vender modules does not change new webpack.HashedModuleIdsPlugin(), // copy custom static assets -/* new CopyWebpackPlugin([{ + new CopyWebpackPlugin([{ from: path.resolve(__dirname, '../static'), to: config.build.assetsSubDirectory, ignore: ['.*'] - }])*/ - new CopyWebpackPlugin({ - patterns: [ - { - from: path.resolve(__dirname, '../static'), - to: config.build.assetsSubDirectory, - ignore: ['.*'] - } - ] - }), + }]) ], optimization: { splitChunks: { From 293b4264dd97cc515fe22a4e9270bd6fe35e991e Mon Sep 17 00:00:00 2001 From: qianming Date: Mon, 30 Dec 2024 13:44:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=8F=8A=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 3 ++- doc/docs/guide/releases/1.5.0.md | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 7abf3694..67299647 100644 --- a/build.sh +++ b/build.sh @@ -11,7 +11,8 @@ echo "build web" cd $BuildDir/report-ui echo "npm install" npm install -echo "" +echo "cp echarts map js" +cp -r node_modules_echarts_need/* node_modules/echarts/ echo "npm run build" npm run build:prod diff --git a/doc/docs/guide/releases/1.5.0.md b/doc/docs/guide/releases/1.5.0.md index 3099a55b..4ae7c959 100644 --- a/doc/docs/guide/releases/1.5.0.md +++ b/doc/docs/guide/releases/1.5.0.md @@ -31,9 +31,9 @@ https://blog.csdn.net/i_for/article/details/135060019 npm config set registry https://mirrors.163.com/npm/ -## 1.5前端编译注意事项 +## 1.5版本开始前端编译注意事项 前端目录:report-ui/node_modules_echarts_need/ -执行完npm install后需要将map文件夹拷贝到node_modules/echarts/文件夹下, +执行完npm install后需要将node_modules_echarts_need目录下map文件夹整体拷贝到node_modules/echarts/文件夹下, 因为echarts v5.0之后的版本不在包含map文件夹 @@ -52,7 +52,7 @@ https://blog.csdn.net/i_for/article/details/135060019 - 2、配置文件增加时区配置 - 3、报表分享增加显示报表名称 - 4、新增柱线图-单坐标 - +- 5、新增使用druid1.2.0 ## 优化