Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 835368b

Browse files
authored
chore: webpack production 번들 크기 최적화 (#144) (#145)
* chore: webpack production 번들 크기 최적화 webpack에서 production 환경에서 트리쉐이킹을 진행해 번들 크기를 1.13MB에서 817.58KB로 줄여 약 27.7% 감소
1 parent f73f8d9 commit 835368b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

build/optionalPlugin/webpack.bundleAnalyzer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = {
44
plugins: [
55
new BundleAnalyzerPlugin({
66
analyzerMode: 'static', // 분석된 결과를 파일로 저장
7-
openAnalyzer: false, // 분석 결과 페이지 자동 열기 여부
87
reportFilename: `bundle-size.html.html`, // 분석 결과 파일명
98
openAnalyzer: true, // 웹팩 빌드 후 보고서파일을 자동으로 열지 여부
109
}),

build/webpack.prod.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ module.exports = {
4141
],
4242
},
4343
optimization: {
44+
minimize: true,
45+
usedExports: true,
4446
minimizer: [
4547
new ESBuildMinifyPlugin({
4648
target: 'es2015',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prosolve",
3-
"version": "1.0.10",
3+
"version": "1.1.0",
44
"main": "index.js",
55
"pretty": "prettier --write \"src/**/*.(ts|tsx)\"",
66
"scripts": {

src/static/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "프로솔브(Pro-Solve)",
33
"description": "제출한 모든 프로그래머스 풀이를 확인할 수 있게 해주는 크롬 익스텐션",
4-
"version": "1.0.10",
4+
"version": "1.1.0",
55
"manifest_version": 3,
66
"icons": {
77
"16": "icon.png",

0 commit comments

Comments
 (0)