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

Optimize assets #225

Merged
merged 9 commits into from Mar 16, 2023
Merged

Optimize assets #225

merged 9 commits into from Mar 16, 2023

Conversation

tysky
Copy link
Contributor

@tysky tysky commented Mar 12, 2023

Фикс #207
Оптимизировал ассеты :

  • Убрал faker с фронтенда, перенес логику генерации названия сниппета на бэкенд
  • Сделал code splitting по роутам
  • Удалил с фронтенда неиспользуемый функционал работы со сниппетами и библиотеку buffer
  • Поменял импорты для yup
  • Удалил font-awesome либы, заменил на иконки бутстрапа

С выносом переводов в отдельный файл с помощью https://github.com/i18next/i18next-http-backend с ходу не получилось, можно попробовать сделать отдельно.

Задеплоил ветку сюда https://tysky-runit.onrender.com/
Скрин загрузки ассетов при первом заходе на сайт, самый большой чанк js теперь 240кб

Screenshot 2023-03-12 at 15 06 51

@@ -29,6 +29,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@monaco-editor/react": "^4.4.6",
"@nestjs-modules/mailer": "^1.8.1",
"@nestjs/cli": "^9.2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

перенес из дев зависимостей в обычные, иначе не деплоилось на render.com

@dzencot dzencot merged commit 9c60631 into hexlet-rus:main Mar 16, 2023
1 of 2 checks passed
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.

None yet

2 participants