Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efremov Homework 6 #82

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

EfremovEvgeniy
Copy link

@EfremovEvgeniy EfremovEvgeniy commented Jun 30, 2022

Завел бюджет и webpack-bundle-analyzer

В бюджет не укалдываемся, js весит больше чем 1 mb.

webpack-bundle-analyzer показал что в vendor много весит chart.js, у которого зависимость с moment.js

hw6_before

Мы не первые кому не нравится эта зависимость, почитал треды, говорят в версях ^3.0.0 зависимости от moment.js нет, попытался обновить chart.js - не получилось, посыпались ошибки.

Убрал подгрузку chart.js и moment.js в vendor.

Отчет webpack-bundle-analyzer стал выглядеть так

image

И мы уложились в бюджет

image

Настроил Github Actions

image

@EfremovEvgeniy EfremovEvgeniy changed the title Wip hw6 Efremov Homework 6 Jun 30, 2022
Copy link
Collaborator

@spajic spajic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Всё верно, но не хватает в case-study ответа на вопрос почему ничего не сломается, если мы уберём эту библиотеку из vendor.js

- name: run sitespeedio test
uses: docker://sitespeedio/sitespeed.io:9.8.1-action
with:
args: https://d596-18-135-4-161.eu.ngrok.io -n 1 --budget.configPath ./homeBudget.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

- name: checkout code
uses: actions/checkout@v3
- name: run sitespeedio test
uses: docker://sitespeedio/sitespeed.io:9.8.1-action
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

старое

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants