修改包大小提示
parent
2250cac7f9
commit
47a8da49ca
|
@ -25,9 +25,6 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
performance: {
|
||||
maxEntrypointSize: 300000,
|
||||
},
|
||||
plugins: [
|
||||
new ESLintPlugin(),
|
||||
],
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -40,6 +40,10 @@ module.exports = merge(baseConfig, {
|
|||
},
|
||||
}),
|
||||
],
|
||||
performance: {
|
||||
maxEntrypointSize: 1024 * 1024 * 10,
|
||||
maxAssetSize: 1024 * 1024 * 20,
|
||||
},
|
||||
optimization: {
|
||||
minimize: false,
|
||||
},
|
||||
|
|
|
@ -127,9 +127,6 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
performance: {
|
||||
maxEntrypointSize: 300000,
|
||||
},
|
||||
plugins: [
|
||||
new HTMLPlugin({
|
||||
filename: 'lyric.html',
|
||||
|
|
|
@ -35,6 +35,8 @@ module.exports = merge(baseConfig, {
|
|||
],
|
||||
},
|
||||
performance: {
|
||||
maxEntrypointSize: 1024 * 1024 * 10,
|
||||
maxAssetSize: 1024 * 1024 * 20,
|
||||
hints: 'warning',
|
||||
},
|
||||
node: {
|
||||
|
|
|
@ -127,9 +127,6 @@ module.exports = {
|
|||
},
|
||||
],
|
||||
},
|
||||
performance: {
|
||||
maxEntrypointSize: 300000,
|
||||
},
|
||||
plugins: [
|
||||
new HTMLPlugin({
|
||||
filename: 'index.html',
|
||||
|
|
|
@ -43,6 +43,8 @@ module.exports = merge(baseConfig, {
|
|||
],
|
||||
},
|
||||
performance: {
|
||||
maxEntrypointSize: 1024 * 1024 * 10,
|
||||
maxAssetSize: 1024 * 1024 * 20,
|
||||
hints: 'warning',
|
||||
},
|
||||
node: {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue