HomeFrontend Development › Frontend build integration (ui.frontend)

Frontend build integration (ui.frontend)

Purpose: Run a modern TS/Sass workflow whose output ships as clientlibs, with local dev against a running AEM.

Who this page is for

AudienceWhy it matters to you
Frontend engineersDaily workflow

The pipeline

ui.frontend/src (TS, Sass, assets)
   │ npm run build (webpack)
   ▼
ui.frontend/dist
   │ aem-clientlib-generator (clientlib.config.js)
   ▼
ui.apps …/clientlibs/clientlib-site (+ clientlib-dependencies)
   │ mvn install -PautoInstallSinglePackage
   ▼
AEM /apps → served via /etc.clientlibs

clientlib.config.js maps dist files → clientlib folders, sets categories/embeds/allowProxy. It is the single source of truth binding the two worlds.

Faster inner loop

TechniqueWhat it gives
npm run watch variants / aemfed / aemsyncPush changed files straight to AEM on save
webpack-dev-server with proxy to :4502Instant HMR for CSS/JS against real pages (proxy html from AEM, serve assets locally)
Storybook (or similar) on component markup copiesPure-frontend iteration on complex UI before wiring into HTL

The proxy approach is the sweet spot: author your HTL/deploy once, then iterate styles/behaviour at webpack speed.

Conventions

Quick navigation