Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a551c86

Browse files
committed
update packages
1 parent 9e73545 commit a551c86

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

‎package.json‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,63 +25,63 @@
2525
"dependencies": {
2626
"@ant-design/icons": "^4.7.0",
2727
"@rematch/core": "^2.2.0",
28-
"antd": "^4.23.2",
29-
"axios": "^0.27.2",
30-
"core-js": "^3.25.3",
28+
"antd": "^4.24.2",
29+
"axios": "^1.1.3",
30+
"core-js": "^3.26.1",
31+
"favicons": "6.2.2",
3132
"lodash": "^4.17.21",
3233
"react": "^18.2.0",
3334
"react-dom": "^18.2.0",
3435
"react-loadable": "^5.5.0",
35-
"react-redux": "^8.0.4",
36-
"react-router-dom": "^6.4.1",
36+
"react-redux": "^8.0.5",
37+
"react-router-dom": "^6.4.3",
3738
"redux": "^4.2.0"
3839
},
3940
"devDependencies": {
40-
"@babel/core": "^7.19.3",
41+
"@babel/core": "^7.20.2",
4142
"@babel/eslint-parser": "^7.19.1",
4243
"@babel/plugin-proposal-class-properties": "^7.18.6",
43-
"@babel/plugin-proposal-decorators": "^7.19.3",
44+
"@babel/plugin-proposal-decorators": "^7.20.2",
4445
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
45-
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
46+
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
4647
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
4748
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
48-
"@babel/plugin-transform-runtime": "^7.19.1",
49-
"@babel/preset-env": "^7.19.3",
49+
"@babel/plugin-transform-runtime": "^7.19.6",
50+
"@babel/preset-env": "^7.20.2",
5051
"@babel/preset-react": "^7.18.6",
51-
"@babel/runtime": "^7.19.0",
52+
"@babel/runtime": "^7.20.1",
5253
"antd-dayjs-webpack-plugin": "^1.0.6",
53-
"autoprefixer": "^10.4.12",
54-
"babel-loader": "^8.2.5",
54+
"autoprefixer": "^10.4.13",
55+
"babel-loader": "^9.1.0",
5556
"babel-plugin-import": "^1.13.5",
5657
"clean-webpack-plugin": "^4.0.0",
5758
"copy-webpack-plugin": "^11.0.0",
58-
"css-loader": "^6.7.1",
59-
"css-minimizer-webpack-plugin": "^4.1.0",
60-
"dayjs": "^1.11.5",
61-
"eslint": "^8.24.0",
59+
"css-loader": "^6.7.2",
60+
"css-minimizer-webpack-plugin": "^4.2.2",
61+
"dayjs": "^1.11.6",
62+
"eslint": "^8.27.0",
6263
"eslint-plugin-prettier": "^4.2.1",
63-
"eslint-plugin-react": "^7.31.8",
64+
"eslint-plugin-react": "^7.31.10",
6465
"eslint-plugin-react-hooks": "^4.6.0",
6566
"eslint-webpack-plugin": "^3.2.0",
66-
"express": "^4.18.1",
67-
"favicons": "6.2.2",
67+
"express": "^4.18.2",
6868
"favicons-webpack-plugin": "^5.0.2",
6969
"happypack": "^5.0.1",
7070
"html-webpack-plugin": "^5.5.0",
7171
"less": "^4.1.3",
72-
"less-loader": "^11.0.0",
72+
"less-loader": "^11.1.0",
7373
"mini-css-extract-plugin": "^2.6.1",
7474
"mockjs": "^1.1.0",
75-
"postcss": "^8.4.16",
75+
"postcss": "^8.4.19",
7676
"postcss-loader": "^7.0.1",
7777
"prettier": "^2.7.1",
7878
"style-loader": "^3.3.1",
7979
"terser-webpack-plugin": "^5.3.6",
80-
"webpack": "^5.74.0",
81-
"webpack-bundle-analyzer": "^4.6.1",
80+
"webpack": "^5.75.0",
81+
"webpack-bundle-analyzer": "^4.7.0",
8282
"webpack-cli": "^4.10.0",
8383
"webpack-dev-middleware": "^5.3.3",
84-
"webpack-hot-middleware": "^2.25.2",
84+
"webpack-hot-middleware": "^2.25.3",
8585
"webpackbar": "^5.0.2",
8686
"workbox-webpack-plugin": "^6.5.4",
8787
"xml-loader": "^1.2.1"

‎src/container/test/index.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import Mp3 from "../../assets/starSky.mp3";
1515

1616
/** 组件 **/
1717
export default function TestPageContainer(props) {
18-
1918
const dispatch = useDispatch();
2019

2120
const count = useSelector((state) => state.test.count); // 引入test model中的count数据

‎webpack.dev.config.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const webpack = require("webpack"); // webpack核心
55
const HtmlWebpackPlugin = require("html-webpack-plugin"); // 动态生成html插件
66
const AntdDayjsWebpackPlugin = require("antd-dayjs-webpack-plugin");
77
const CopyPlugin = require("copy-webpack-plugin"); // 用于直接复制public中的文件到打包的最终文件夹中
8-
const HappyPack = require("happypack"); // 多线程编译
8+
// const HappyPack = require("happypack"); // 多线程编译
99
const webpackbar = require("webpackbar");
1010
const ESLintPlugin = require("eslint-webpack-plugin"); // eslint插件,代替原来的eslint-loader
1111
const PUBLIC_PATH = "/"; // 基础路径
@@ -33,7 +33,7 @@ module.exports = {
3333
{
3434
// .js .jsx用babel解析
3535
test: /\.js?$/,
36-
use: ["happypack/loader"],
36+
use: ["babel-loader"],
3737
include: path.resolve(__dirname, "src"),
3838
},
3939
{
@@ -90,9 +90,9 @@ module.exports = {
9090
new webpack.DefinePlugin({
9191
"process.env": "dev",
9292
}),
93-
new HappyPack({
94-
loaders: ["babel-loader"],
95-
}),
93+
// new HappyPack({
94+
// loaders: ["babel-loader"],
95+
// }),
9696
new HtmlWebpackPlugin({
9797
// 根据模板插入css/js等生成最终HTML
9898
filename: "index.html", //生成的html存放路径,相对于 output.path

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /