feat(frontend/assets): Frontend assets JS minification POC - #985
Draft
osalama7 wants to merge 1 commit into
Draft
Conversation
Add Nx at the frontend/assets root to enable caching and unified build orchestration without modifying webpack configs or per-plugin build logic. This POC pilots the setup on gui.ajax before rolling out to other plugins. Changes: - Install nx dependency at frontend/assets root - Add nx.json with sharedGlobals (webpack-commons.js, libdefs.js, pnpm- lock.yaml) and targetDefaults for build caching (inputs: production, outputs: res/dist) - Add gui.ajax unified "build" script composing existing webpack configs (boot+core+libs+css in production mode, reuses per-config scripts as-is) - Wire gui.ajax build into make dev via new frontend-assets target (ensures assets rebuild before Go compilation on local dev) - Fix pre-existing name collision: editor.soundmanager/package.json was incorrectly "editor.diaporama"; now "editor.soundmanager" Pilot scope: gui.ajax only. Follow-up: validate against other plugins and wire up nx run-many/affected once pattern is proven.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
{WIP}
Add Nx at the frontend/assets root to enable caching and unified build orchestration without modifying webpack configs or per-plugin build logic. This POC pilots the setup on gui.ajax before rolling out to other plugins.
Changes:
Pilot scope: gui.ajax only. Follow-up: validate against other plugins and wire up nx run-many/affected once pattern is proven.