Skip to content

Commit 62d2d9e

Browse files
committed
chore: edit build
1 parent 7707651 commit 62d2d9e

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

webpack.config.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ module.exports = function () {
224224
],
225225
type: 'asset/resource',
226226
generator: {
227-
filename: 'static/[name]__[hash:8][ext]',
227+
filename: 'asset-[name]__[hash:8][ext]',
228228
},
229229
},
230230
{
@@ -351,26 +351,28 @@ module.exports = function () {
351351
new webpack.ProgressPlugin(),
352352

353353
new MiniCssExtractPlugin({
354-
filename: 'static/[contenthash].css',
355-
chunkFilename: 'static/[contenthash].css',
354+
filename: 'main-[contenthash].css',
355+
chunkFilename: 'chunk-[contenthash].css',
356356
ignoreOrder: true,
357357
}),
358358

359359
new CssMinimizerPlugin(),
360360

361-
new FaviconsWebpackPlugin(
362-
path.resolve(__dirname, 'public', 'favicon.svg'),
363-
),
361+
new FaviconsWebpackPlugin({
362+
logo: path.resolve(__dirname, 'public', 'favicon.svg'),
363+
publicPath: '/',
364+
prefix: '',
365+
}),
364366
].filter(Boolean),
365367

366368
output: {
367369
filename: 'index.js',
368370
path: path.resolve(__dirname, 'build'),
369371
...(isEnvProduction && {
370372
asyncChunks: true,
371-
filename: 'static/[contenthash].js',
372-
chunkFilename: 'static/[contenthash].js',
373-
assetModuleFilename: 'static/media/[contenthash][ext]',
373+
filename: 'main-[contenthash].js',
374+
chunkFilename: 'chunk-[contenthash].js',
375+
assetModuleFilename: 'asset-[contenthash][ext]',
374376
}),
375377
publicPath: '/',
376378
},

yarn.lock

+5-12
Original file line numberDiff line numberDiff line change
@@ -13128,7 +13128,7 @@ resolve.exports@^1.1.0:
1312813128
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9"
1312913129
integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==
1313013130

13131-
resolve@>=1.9.0, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.9.0:
13131+
resolve@^1.1.7, resolve@^1.10.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.9.0:
1313213132
version "1.22.1"
1313313133
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177"
1313413134
integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==
@@ -14806,13 +14806,6 @@ tsutils@^3.21.0:
1480614806
dependencies:
1480714807
tslib "^1.8.1"
1480814808

14809-
ttypescript@^1.5.15:
14810-
version "1.5.15"
14811-
resolved "https://registry.yarnpkg.com/ttypescript/-/ttypescript-1.5.15.tgz#e45550ad69289d06d3bc3fd4a3c87e7c1ef3eba7"
14812-
integrity sha512-48ykDNHzFnPMnv4hYX1P8Q84TvCZyL1QlFxeuxsuZ48X2+ameBgPenvmCkHJtoOSxpoWTWi8NcgNrRnVDOmfSg==
14813-
dependencies:
14814-
resolve ">=1.9.0"
14815-
1481614809
tunnel-agent@^0.6.0:
1481714810
version "0.6.0"
1481814811
resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
@@ -14908,10 +14901,10 @@ typescript@^4.6.4:
1490814901
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
1490914902
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==
1491014903

14911-
typescript@^5.4.5:
14912-
version "5.5.4"
14913-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba"
14914-
integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==
14904+
typescript@^5.8.3:
14905+
version "5.8.3"
14906+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.3.tgz#92f8a3e5e3cf497356f4178c34cd65a7f5e8440e"
14907+
integrity sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==
1491514908

1491614909
1491714910
version "0.0.6"

0 commit comments

Comments
 (0)