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

Overhaul Mix build #2524

Merged
merged 11 commits into from
Nov 4, 2024
Merged

Conversation

williamjallen
Copy link
Collaborator

This PR is the first of several aiming to clean up our frontend website build process and overall asset structure. This PR overhauls the Mix build script, leading to better cache busting behavior for some assets.

Future work includes:

  • Better JavaScript and CSS splitting, including tree shaking for smaller bundle sizes
  • Hot reloading support
  • A reorganization of the publicly available assets
  • A close look at our CSS and JavaScript dependencies to minimize the exposure of legacy dependencies on pages which do not use them

@josephsnyder
Copy link
Member

@williamjallen, how supported is the "hot reloading" in this MR? I'm running into an issue when using it, but don't want to request changes if there are still things coming.

@williamjallen
Copy link
Collaborator Author

@josephsnyder Hot reloading is still not usable. This PR is pretty much just a refactor of the build process so I can more easily tackle problems like hot reloading in the future. The main improvement in this PR is the improved cache busting behavior.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

LGTM. Once rebased, it should be added to the merge queue!

@williamjallen williamjallen added this pull request to the merge queue Nov 4, 2024
Merged via the queue into Kitware:master with commit 35bceaa Nov 4, 2024
6 checks passed
@williamjallen williamjallen deleted the mix-build-cleanup branch November 4, 2024 18:50
zackgalbreath added a commit that referenced this pull request Nov 13, 2024
After #2524 we started seeing 404 errors when attempting to load
3rdparty.min.js and legacy_1stparty.min.js for Angular and Vue pages.

The solution is to meticulously wrap all our calls to mix() in asset().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants