Skip to content

Commit 47a8da4

Browse files
committed
修改包大小提示
1 parent 2250cac commit 47a8da4

9 files changed

Lines changed: 368 additions & 337 deletions

build-config/main/webpack.config.base.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ module.exports = {
2525
},
2626
],
2727
},
28-
performance: {
29-
maxEntrypointSize: 300000,
30-
},
3128
plugins: [
3229
new ESLintPlugin(),
3330
],

build-config/main/webpack.config.dev.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ module.exports = merge(baseConfig, {
1919
__userApi: `"${path.join(__dirname, '../../src/main/modules/userApi').replace(/\\/g, '\\\\')}"`,
2020
}),
2121
],
22+
performance: {
23+
maxEntrypointSize: 1024 * 1024 * 50,
24+
maxAssetSize: 1024 * 1024 * 30,
25+
},
2226
})

build-config/main/webpack.config.prod.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ module.exports = merge(baseConfig, {
4040
},
4141
}),
4242
],
43+
performance: {
44+
maxEntrypointSize: 1024 * 1024 * 10,
45+
maxAssetSize: 1024 * 1024 * 20,
46+
},
4347
optimization: {
4448
minimize: false,
4549
},

build-config/renderer-lyric/webpack.config.base.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ module.exports = {
127127
},
128128
],
129129
},
130-
performance: {
131-
maxEntrypointSize: 300000,
132-
},
133130
plugins: [
134131
new HTMLPlugin({
135132
filename: 'lyric.html',

build-config/renderer-lyric/webpack.config.prod.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module.exports = merge(baseConfig, {
3535
],
3636
},
3737
performance: {
38+
maxEntrypointSize: 1024 * 1024 * 10,
39+
maxAssetSize: 1024 * 1024 * 20,
3840
hints: 'warning',
3941
},
4042
node: {

build-config/renderer/webpack.config.base.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ module.exports = {
127127
},
128128
],
129129
},
130-
performance: {
131-
maxEntrypointSize: 300000,
132-
},
133130
plugins: [
134131
new HTMLPlugin({
135132
filename: 'index.html',

build-config/renderer/webpack.config.prod.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ module.exports = merge(baseConfig, {
4343
],
4444
},
4545
performance: {
46+
maxEntrypointSize: 1024 * 1024 * 10,
47+
maxAssetSize: 1024 * 1024 * 20,
4648
hints: 'warning',
4749
},
4850
node: {

package-lock.json

Lines changed: 350 additions & 322 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@
178178
},
179179
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
180180
"devDependencies": {
181-
"@babel/core": "^7.17.12",
181+
"@babel/core": "^7.18.0",
182182
"@babel/eslint-parser": "^7.17.0",
183183
"@babel/plugin-proposal-class-properties": "^7.17.12",
184184
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
185-
"@babel/plugin-transform-modules-umd": "^7.17.12",
186-
"@babel/plugin-transform-runtime": "^7.17.12",
185+
"@babel/plugin-transform-modules-umd": "^7.18.0",
186+
"@babel/plugin-transform-runtime": "^7.18.0",
187187
"@babel/polyfill": "^7.12.1",
188-
"@babel/preset-env": "^7.17.12",
188+
"@babel/preset-env": "^7.18.0",
189189
"babel-loader": "^8.2.5",
190190
"babel-preset-minify": "^0.5.2",
191191
"browserslist": "^4.20.3",
@@ -203,7 +203,7 @@
203203
"electron-devtools-installer": "^3.2.0",
204204
"electron-to-chromium": "^1.4.137",
205205
"electron-updater": "^5.0.4",
206-
"eslint": "^8.15.0",
206+
"eslint": "^8.16.0",
207207
"eslint-config-standard": "^17.0.0",
208208
"eslint-formatter-friendly": "git+https://github.com/lyswhut/eslint-friendly-formatter.git#2170d1320e2fad13615a9dcf229669f0bb473a53",
209209
"eslint-plugin-html": "^6.2.0",
@@ -259,7 +259,7 @@
259259
"sortablejs": "^1.15.0",
260260
"tunnel": "^0.0.6",
261261
"utf-8-validate": "^5.0.9",
262-
"vue": "^3.2.33",
262+
"vue": "^3.2.35",
263263
"vue-i18n": "^9.2.0-beta.35",
264264
"vue-router": "^4.1.0-aabe509",
265265
"vuex": "^4.0.2"

0 commit comments

Comments
 (0)