修改包大小提示

pull/930/merge
lyswhut 2022-05-22 01:50:34 +08:00
parent 2250cac7f9
commit 47a8da49ca
9 changed files with 367 additions and 336 deletions

View File

@ -25,9 +25,6 @@ module.exports = {
},
],
},
performance: {
maxEntrypointSize: 300000,
},
plugins: [
new ESLintPlugin(),
],

View File

@ -19,4 +19,8 @@ module.exports = merge(baseConfig, {
__userApi: `"${path.join(__dirname, '../../src/main/modules/userApi').replace(/\\/g, '\\\\')}"`,
}),
],
performance: {
maxEntrypointSize: 1024 * 1024 * 50,
maxAssetSize: 1024 * 1024 * 30,
},
})

View File

@ -40,6 +40,10 @@ module.exports = merge(baseConfig, {
},
}),
],
performance: {
maxEntrypointSize: 1024 * 1024 * 10,
maxAssetSize: 1024 * 1024 * 20,
},
optimization: {
minimize: false,
},

View File

@ -127,9 +127,6 @@ module.exports = {
},
],
},
performance: {
maxEntrypointSize: 300000,
},
plugins: [
new HTMLPlugin({
filename: 'lyric.html',

View File

@ -35,6 +35,8 @@ module.exports = merge(baseConfig, {
],
},
performance: {
maxEntrypointSize: 1024 * 1024 * 10,
maxAssetSize: 1024 * 1024 * 20,
hints: 'warning',
},
node: {

View File

@ -127,9 +127,6 @@ module.exports = {
},
],
},
performance: {
maxEntrypointSize: 300000,
},
plugins: [
new HTMLPlugin({
filename: 'index.html',

View File

@ -43,6 +43,8 @@ module.exports = merge(baseConfig, {
],
},
performance: {
maxEntrypointSize: 1024 * 1024 * 10,
maxAssetSize: 1024 * 1024 * 20,
hints: 'warning',
},
node: {

670
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -178,14 +178,14 @@
},
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
"devDependencies": {
"@babel/core": "^7.17.12",
"@babel/core": "^7.18.0",
"@babel/eslint-parser": "^7.17.0",
"@babel/plugin-proposal-class-properties": "^7.17.12",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-umd": "^7.17.12",
"@babel/plugin-transform-runtime": "^7.17.12",
"@babel/plugin-transform-modules-umd": "^7.18.0",
"@babel/plugin-transform-runtime": "^7.18.0",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.17.12",
"@babel/preset-env": "^7.18.0",
"babel-loader": "^8.2.5",
"babel-preset-minify": "^0.5.2",
"browserslist": "^4.20.3",
@ -203,7 +203,7 @@
"electron-devtools-installer": "^3.2.0",
"electron-to-chromium": "^1.4.137",
"electron-updater": "^5.0.4",
"eslint": "^8.15.0",
"eslint": "^8.16.0",
"eslint-config-standard": "^17.0.0",
"eslint-formatter-friendly": "git+https://github.com/lyswhut/eslint-friendly-formatter.git#2170d1320e2fad13615a9dcf229669f0bb473a53",
"eslint-plugin-html": "^6.2.0",
@ -259,7 +259,7 @@
"sortablejs": "^1.15.0",
"tunnel": "^0.0.6",
"utf-8-validate": "^5.0.9",
"vue": "^3.2.33",
"vue": "^3.2.35",
"vue-i18n": "^9.2.0-beta.35",
"vue-router": "^4.1.0-aabe509",
"vuex": "^4.0.2"