chore(deps): 升级依赖并移除webpack配置中冗余规则
- 将@ant-design/pro-components升级到3.1.14-6版本 - 将zy-react-library升级到2.1.4版本 - 移除webpackConfig中针对@ant-design/pro-components的module.rules配置,简化构建配置2.0
parent
2df0b91dae
commit
3fdef4aa46
|
|
@ -68,17 +68,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
// webpack
|
// webpack
|
||||||
webpackConfig: {
|
webpackConfig: {
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.m?js$/,
|
|
||||||
include: path.resolve(__dirname, "./node_modules/@ant-design/pro-components"),
|
|
||||||
resolve: {
|
|
||||||
fullySpecified: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
// 单页面插件
|
// 单页面插件
|
||||||
htmlWebpackPluginOption: {
|
htmlWebpackPluginOption: {
|
||||||
// 自动注入编译后的文件到public/index.html中
|
// 自动注入编译后的文件到public/index.html中
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ahooksjs/use-url-state": "^3.5.1",
|
"@ahooksjs/use-url-state": "^3.5.1",
|
||||||
"@ant-design/icons": "^6.2.5",
|
"@ant-design/icons": "^6.2.5",
|
||||||
"@ant-design/pro-components": "^3.1.12-0",
|
"@ant-design/pro-components": "3.1.14-6",
|
||||||
"@cqsjjb/jjb-common-decorator": "latest",
|
"@cqsjjb/jjb-common-decorator": "latest",
|
||||||
"@cqsjjb/jjb-common-lib": "latest",
|
"@cqsjjb/jjb-common-lib": "latest",
|
||||||
"@cqsjjb/jjb-dva-runtime": "latest",
|
"@cqsjjb/jjb-dva-runtime": "latest",
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"throttle-debounce": "^5.0.2",
|
"throttle-debounce": "^5.0.2",
|
||||||
"zy-react-library": "^2.0.0"
|
"zy-react-library": "^2.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^5.4.1",
|
"@antfu/eslint-config": "^5.4.1",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue