@autobest-ui/scripts 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobest-ui/scripts",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "private": false,
5
5
  "description": "utils for project tools",
6
6
  "bin": {
@@ -92,5 +92,5 @@
92
92
  "webpack-merge": "5.8.0",
93
93
  "webpack-node-externals": "3.0.0"
94
94
  },
95
- "gitHead": "6a50d3def5d2d02802c524f99663347f410762c0"
95
+ "gitHead": "9043135be066954d952dac512ef2e5aabc1a7512"
96
96
  }
@@ -52,8 +52,7 @@ module.exports = function (appConfig, extendEnv) {
52
52
  ],
53
53
  splitChunks: {
54
54
  chunks: 'async',
55
- // 大于3kb才会分割
56
- minSize: 3072,
55
+ minSize: 0,
57
56
  minRemainingSize: 0,
58
57
  minChunks: 1,
59
58
  // 按需加载时的最大并行请求数。
@@ -65,12 +64,14 @@ module.exports = function (appConfig, extendEnv) {
65
64
  defaultVendors: {
66
65
  test: /[\\/]node_modules[\\/]/,
67
66
  minChunks: 2,
67
+ name: 'vendor',
68
68
  priority: -10,
69
69
  reuseExistingChunk: true
70
70
  },
71
71
  default: {
72
72
  minChunks: 3,
73
73
  priority: -20,
74
+ name: '_app_',
74
75
  reuseExistingChunk: true
75
76
  }
76
77
  }