Skip to content

feat(frontend/assets): Frontend assets JS minification POC - #985

Draft
osalama7 wants to merge 1 commit into
v5-devfrom
feat/frontend-assets
Draft

feat(frontend/assets): Frontend assets JS minification POC#985
osalama7 wants to merge 1 commit into
v5-devfrom
feat/frontend-assets

Conversation

@osalama7

@osalama7 osalama7 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

{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:

  • 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.

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.
@osalama7 osalama7 changed the title feat(frontend/assets): Frontend assets JS minification feat(frontend/assets): Frontend assets JS minification POC Aug 28, 2026
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