chore: remove 无效代码

This commit is contained in:
winixt 2023-12-14 11:48:44 +08:00
parent de296682af
commit 30313300f0
3 changed files with 21 additions and 19 deletions

View File

@ -62,7 +62,7 @@
"webpack": "^5.87.0",
"webpack-5-chain": "^8.0.1",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-dev-server": "^4.8.1",
"webpack-dev-server": "^4.15.1",
"webpackbar": "^5.0.2"
},
"peerDependencies": {

View File

@ -75,7 +75,6 @@ export default async function getConfig({ api, cwd, config, env, entry = {}, mod
// --------------- output -----------
webpackConfig.output
.path(absoluteOutput)
.publicPath(publicPath ?? '/')
.filename('static/[name].[contenthash:8].js')
.chunkFilename('static/[name].[contenthash:8].chunk.js')
.assetModuleFilename('static/[name][hash:8][ext]');

37
pnpm-lock.yaml generated
View File

@ -316,8 +316,8 @@ importers:
specifier: ^4.4.0
version: 4.4.0
webpack-dev-server:
specifier: ^4.8.1
version: 4.8.1(webpack@5.87.0)
specifier: ^4.15.1
version: 4.15.1(webpack@5.87.0)
webpackbar:
specifier: ^5.0.2
version: 5.0.2(webpack@5.87.0)
@ -5441,7 +5441,6 @@ packages:
/@types/json-schema@7.0.15:
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
dev: true
/@types/lodash-es@4.17.7:
resolution: {integrity: sha512-z0ptr6UI10VlU6l5MYhGwS4mC8DZyYer2mCoyysZtSF7p26zOX8UpbrV0YpNYLGS8K4PUFIyEr62IMFFjveSiQ==}
@ -5532,8 +5531,8 @@ packages:
/@types/web-bluetooth@0.0.16:
resolution: {integrity: sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==}
/@types/ws@8.5.4:
resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==}
/@types/ws@8.5.10:
resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}
dependencies:
'@types/node': 18.15.13
dev: false
@ -7280,11 +7279,6 @@ packages:
/concat-map@0.0.1:
resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=, tarball: https://registry.npmmirror.com/concat-map/download/concat-map-0.0.1.tgz}
/connect-history-api-fallback@1.6.0:
resolution: {integrity: sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==}
engines: {node: '>=0.8'}
dev: false
/connect-history-api-fallback@2.0.0:
resolution: {integrity: sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==}
engines: {node: '>=0.8'}
@ -10777,6 +10771,13 @@ packages:
resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}
dev: false
/launch-editor@2.6.1:
resolution: {integrity: sha512-eB/uXmFVpY4zezmGp5XtU21kwo7GBbKB+EQ+UZeWtGb9yAM5xt/Evk+lYH3eRNAtId+ej4u7TYPFZ07w4s7rRw==}
dependencies:
picocolors: 1.0.0
shell-quote: 1.8.1
dev: false
/less-loader@11.1.0(less@4.1.3)(webpack@5.87.0):
resolution: {integrity: sha512-C+uDBV7kS7W5fJlUjq5mPBeBVhYpTIm5gB09APT9o3n/ILeaXVsiSFTbZpTJCJwQ/Crczfn3DmfQFwxYusWFug==}
engines: {node: '>= 14.15.0'}
@ -12927,7 +12928,7 @@ packages:
resolution: {integrity: sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==}
engines: {node: '>= 12.13.0'}
dependencies:
'@types/json-schema': 7.0.11
'@types/json-schema': 7.0.15
ajv: 8.12.0
ajv-formats: 2.1.1(ajv@8.12.0)
ajv-keywords: 5.1.0(ajv@8.12.0)
@ -13087,7 +13088,6 @@ packages:
/shell-quote@1.8.1:
resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==}
dev: true
/shiki@0.14.1:
resolution: {integrity: sha512-+Jz4nBkCBe0mEDqo1eKRcCdjRtrCjozmcbTUjbPTX7OOJfEbTZzlUWlZtGe3Gb5oV1/jnojhG//YZc3rs9zSEw==}
@ -14316,14 +14316,16 @@ packages:
webpack: 5.87.0
dev: false
/webpack-dev-server@4.8.1(webpack@5.87.0):
resolution: {integrity: sha512-dwld70gkgNJa33czmcj/PlKY/nOy/BimbrgZRaR9vDATBQAYgLzggR0nxDtPLJiLrMgZwbE6RRfJ5vnBBasTyg==}
/webpack-dev-server@4.15.1(webpack@5.87.0):
resolution: {integrity: sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==}
engines: {node: '>= 12.13.0'}
hasBin: true
peerDependencies:
webpack: ^4.37.0 || ^5.0.0
webpack-cli: '*'
peerDependenciesMeta:
webpack:
optional: true
webpack-cli:
optional: true
dependencies:
@ -14331,23 +14333,24 @@ packages:
'@types/connect-history-api-fallback': 1.3.5
'@types/express': 4.17.17
'@types/serve-index': 1.9.1
'@types/serve-static': 1.15.1
'@types/sockjs': 0.3.33
'@types/ws': 8.5.4
'@types/ws': 8.5.10
ansi-html-community: 0.0.8
bonjour-service: 1.1.1
chokidar: 3.5.3
colorette: 2.0.20
compression: 1.7.4
connect-history-api-fallback: 1.6.0
connect-history-api-fallback: 2.0.0
default-gateway: 6.0.3
express: 4.17.3
graceful-fs: 4.2.11
html-entities: 2.3.3
http-proxy-middleware: 2.0.6(@types/express@4.17.17)
ipaddr.js: 2.0.1
launch-editor: 2.6.1
open: 8.4.2
p-retry: 4.6.2
portfinder: 1.0.32
rimraf: 3.0.2
schema-utils: 4.0.1
selfsigned: 2.1.1