Skip to content

Commit

Permalink
optimize: upgrade console frontend dependencies and supported nodejs …
Browse files Browse the repository at this point in the history
…versions (apache#6301)
  • Loading branch information
liuqiufeng committed Jan 26, 2024
1 parent 5412202 commit 256f0b4
Show file tree
Hide file tree
Showing 17 changed files with 17,179 additions and 27,656 deletions.
1 change: 1 addition & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#6297](https://github.com/apache/incubator-seata/pull/6297)] fix problem of `maven-pmd-plugin`
- [[#6298](https://github.com/apache/incubator-seata/pull/6298)] repackage name to org.apache.seata
- [[#6304](https://github.com/apache/incubator-seata/pull/6304)] disable Publish OSSRH workflow
- [[#6301](https://github.com/apache/incubator-seata/pull/6301)] upgrade console frontend dependencies and supported nodejs versions

### security:
- [[#6069](https://github.com/apache/incubator-seata/pull/6069)] Upgrade Guava dependencies to fix security vulnerabilities
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
- [[#6297](https://github.com/apache/incubator-seata/pull/6297)] 修复 `maven-pmd-plugin` 相关的问题
- [[#6298](https://github.com/apache/incubator-seata/pull/6298)] 重命名包名为 org.apache.seata
- [[#6304](https://github.com/apache/incubator-seata/pull/6304)] 禁用 OSSRH 发布工作流
- [[#6301](https://github.com/apache/incubator-seata/pull/6301)] 升级console前端依赖及支持的nodejs版本

### security:
- [[#6069](https://github.com/apache/incubator-seata/pull/6069)] 升级Guava依赖版本,修复安全漏洞
Expand Down
12 changes: 1 addition & 11 deletions console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
</goals>
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v14.21.3</nodeVersion>
<nodeVersion>v19.5.0</nodeVersion>
</configuration>
</execution>
<execution>
Expand All @@ -157,16 +157,6 @@
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>update caniuse db</id>
<goals>
<goal>npx</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>browserslist@latest</arguments>
</configuration>
</execution>
<execution>
<id>npm build</id>
<goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ module.exports = {
template: './public/index.html',
minify: !isDev,
}),
new CopyWebpackPlugin([
{
from: resolve('public'),
to: './',
ignore: ['index.html'],
},
]),
new CopyWebpackPlugin({
patterns: [
{
from: resolve('public'),
to: './',
globOptions:{
ignore: ['**/index.html'],
}
},
]}),
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ module.exports = Object.assign({}, base, {
target: 'http://127.0.0.1:7091',
pathRewrite: {'^/' : ''}
}],
disableHostCheck: true,
allowedHosts: "all",
open: true,
hot: true,
overlay: true
client: {
overlay: true
}
},
mode: 'development',
devtool: 'eval-source-map',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ const base = require('./webpack.base.conf');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
// error:0308010C:digital envelope routines::unsupported
const crypto = require("crypto");
const ori_createHash = crypto.createHash;
crypto.createHash = algorithm => ori_createHash(algorithm == "md4" ? "sha256" : algorithm);

module.exports = Object.assign({}, base, {
optimization: {
Expand All @@ -34,8 +38,8 @@ module.exports = Object.assign({}, base, {
],
},
plugins: [
new CleanWebpackPlugin(path.resolve(__dirname, '../dist'), {
root: path.resolve(__dirname, '../'),
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: [path.resolve(__dirname, '../dist')]
}),
...base.plugins,
new MiniCssExtractPlugin({
Expand Down
Loading

0 comments on commit 256f0b4

Please sign in to comment.