Skip to content

569 webpack fix big files #592

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

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

Conversation

necit-dev
Copy link
Contributor

@necit-dev necit-dev commented Jul 7, 2024

Основа на #585

Задача #569
Сделано следующее:

  1. Файл main.js разбит на 2 файла: general_imports.js (в нем импорт библиотек идет) и на general.js (в нем основная часть main.js).
  2. В бОльшем количестве html-файлов идет подключение соответствующих им js-файлов. У следующих файлов одинаково называются html и js файлы:
    admin_criterions, check_list, login, logs, one_user_info, profile, results, signup, upload, user_list, version
    В одном случае немного различаются названия: criteria_pack.html <-> criterion_pack.js
  3. К файлам 404.html, admin_pages_list.html, intro_page.html, pack_list.html подключен файл general.js
  4. Ко всем файлам Webpack добавляет 'core-js/stable', 'regenerator-runtime/runtime' и сделанный в проекте 'general_imports.js'
    В итоге, сейчас, вместо громоздкого файла main.js подключаются только те части js-кода, которые необходимы определенной странице.

@HadronCollider HadronCollider added architecture future_integration Интеграция/мерж в будущих релизах ready_for_release Готов для добавления в ближайший релиз labels Jul 22, 2024
@github-actions github-actions bot added the has conflicts if new merge has conflicts label Aug 26, 2024
@github-actions github-actions bot removed the has conflicts if new merge has conflicts label Aug 28, 2024
@github-actions github-actions bot added the has conflicts if new merge has conflicts label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture future_integration Интеграция/мерж в будущих релизах has conflicts if new merge has conflicts ready_for_release Готов для добавления в ближайший релиз
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Библиотеки JS - обновление сборки библиотек
2 participants