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 webpack config #3266

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

OlegWock
Copy link
Contributor

@OlegWock OlegWock commented Oct 18, 2023

GitHub Issue (if applicable): n/a

I optimized webpack config a bit (without changing output format) and also updated all related loaders. This cut webpack compilation time in ~half on my machine, which in pair with added yarn watch:webpack allows to iterate a lot quicker, without waiting for full build process after each change.

Time changes on my machine

(With preinstalled dependencies)

Before optimizations:

❯ yarn build:development
...
✨  Done in 9.89s.

❯ yarn build:production
...
✨  Done in 13.69s.

After optimizations:

❯ yarn build:development
...
✨  Done in 6.40s.

❯ yarn build:production
...
✨  Done in 8.93s.

(Difference isn't 2x because I only optimized webpack part of pipeline, index generators were kept intact)

@joshmadewell joshmadewell merged commit 7373f34 into toolkit-for-ynab:main Oct 20, 2023
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