Skip to content

poc: bundle js assets on build time#850

Draft
cristianoliveira wants to merge 3 commits intov5-devfrom
poc/fe-build
Draft

poc: bundle js assets on build time#850
cristianoliveira wants to merge 3 commits intov5-devfrom
poc/fe-build

Conversation

@cristianoliveira
Copy link
Contributor

@cristianoliveira cristianoliveira commented Mar 2, 2026

This is a small POC to see how hard would be to remove the minified js from git and generate it at build time

This commit changes the bundle validation script to dynamically find and validate all plugins with webpack.config.js files instead of only checking the meta.user plugin.
Detailed Changes:
 - Implementation:
   - Changed validate-bundles.sh to find all plugins with webpack.config.js files and validate each bundle.
   - Changed the minimum bundle size check from 1KB to 50KB.
   - Added summary statistics for plugins and bundles validated, passed, failed, and skipped.
   - Changed the error messages and rebuild instructions to list each plugin that needs rebuilding.
 - Development Experience:
   - Changed the script to provide more detailed output and better debugging information.
@@ -0,0 +1,283 @@
#!/bin/bash
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This script here might be a overkill but I wanted to be able to check and fail the build in case the minified js wasn't properly generated


## Frontend Assets Building

build-frontend-assets:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Basically we would just need to add this step to run before the build in the Makefile

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.

1 participant