Skip to content

Commit

Permalink
fix: optimize bundle size (#281)
Browse files Browse the repository at this point in the history
* install webpack-bundle-analyzer

* optimize PlayerStatsComponent

* optimize QueueSlotItemComponent

* optimize QueueContainerComponent

* optimize GameTeamPlayerListComponent

* optimize GameTeamHeaderComponent

* optimize SettingsComponent
  • Loading branch information
garrappachc authored May 25, 2020
1 parent dcb9816 commit ea1ead3
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 8 deletions.
99 changes: 99 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:stats": "ng build --stats-json",
"analyze": "webpack-bundle-analyzer dist/tf2pickuppl/stats-es2015.json",
"build:tf2pickup.pl": "ng build --configuration=production,tf2pickup.pl --output-path=dist/tf2pickup.pl",
"build:hl.tf2pickup.pl": "ng build --configuration=production,hl.tf2pickup.pl --output-path=dist/hl.tf2pickup.pl",
"build:tf2pickup.es": "ng build --configuration=production,tf2pickup.es --output-path=dist/tf2pickup.es",
Expand Down Expand Up @@ -72,6 +74,7 @@
"protractor": "7.0.0",
"ts-node": "8.10.1",
"tslint": "6.1.2",
"typescript": "3.8.3"
"typescript": "3.8.3",
"webpack-bundle-analyzer": "^3.8.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";

.team-header {
color: theme-color("light");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";

.player-item {
display: flex;
Expand Down
3 changes: 2 additions & 1 deletion src/app/players/player-stats/player-stats.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";

.col.narrow {
display: flex;
Expand Down
2 changes: 0 additions & 2 deletions src/app/profile/settings/settings.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "~bootstrap/scss/bootstrap";

$twitch: #9146ff;

.bg-twitch {
Expand Down
4 changes: 3 additions & 1 deletion src/app/queue/queue-container/queue-container.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins/breakpoints";

.column-sidebar {
display: none;
Expand Down
4 changes: 3 additions & 1 deletion src/app/queue/queue-slot-item/queue-slot-item.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/utilities/borders";

.queue-slot-item {
@extend .border;
Expand Down

0 comments on commit ea1ead3

Please sign in to comment.