Aem frontend build pipeline
Skill prakash888kp/AEM-SKILLS/skills/tier-4-performance/aem-frontend-build-pipeline
A curated catalog of Adobe Experience Manager (AEM) skills organized into tiers, with dependency chains and contribution guidelines.
npx -y skills add prakash888kp/AEM-SKILLS --skill aem-frontend-build-pipelineAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.1 KB, as published. Nobody here has run it
AEM Frontend Build Pipeline
Purpose
Implement modern frontend build pipelines for AEM including webpack/Vite configuration, client library generation, CSS/JS optimization, and integration with AEM's ui.frontend module architecture.
When to Use (Triggers)
- User mentions "frontend build," "webpack," "client libraries," or "ui.frontend"
- References to npm, CSS compilation (SASS/LESS), or JavaScript bundling
- Questions about clientlib generation, code splitting, or asset optimization
- Requests involving SPA frameworks (React/Angular/Vue) with AEM integration
- Discussion of frontend development workflow, hot reload, or proxy configuration
Core Capabilities
- Configure webpack/Vite for AEM clientlib generation via aem-clientlib-generator
- Implement CSS preprocessor pipelines (SASS/LESS) with PostCSS optimization
- Set up JavaScript bundling with tree-shaking and code splitting
- Configure frontend proxy development workflow with AEM backend
- Integrate SPA frameworks with AEM SPA Editor SDK
Domain Knowledge Required
Technical Foundation
- Module bundlers (webpack 5, Vite, Rollup) and their configuration
- CSS preprocessors (SASS, LESS) and PostCSS plugin ecosystem
- JavaScript module systems (ESM, CommonJS) and code splitting strategies
- Node.js/npm project management and dependency resolution
AEM-Specific Context
- AEM Client Library (clientlib) structure (js.txt, css.txt, categories)
aem-clientlib-generatornpm package for automated clientlib creation- AEM Archetype ui.frontend module structure and build integration
- SPA Editor SDK (React, Angular) and its build requirements
- Component-scoped styles vs. global theme clientlibs
- Client library dependencies and embed patterns
Implementation Approach
Step 1: Project Structure
Set up the frontend module within AEM project.
- Initialize ui.frontend module following AEM Archetype patterns
- Configure package.json with build scripts (dev, prod, watch)
- Set up source directory structure (components, themes, utilities)
- Define clientlib output categories aligned with page structure
Step 2: Build Configuration
Configure the bundler for AEM-compatible output.
- Set up webpack/Vite with appropriate entry points per clientlib category
- Configure aem-clientlib-generator for automated clientlib creation
- Set up CSS extraction and optimization (MiniCssExtractPlugin / Vite CSS)
- Configure asset handling (fonts, images, SVGs) with correct paths
Step 3: Development Workflow
Enable rapid frontend iteration.
- Configure webpack-dev-server / Vite dev server with AEM proxy
- Set up hot module replacement (HMR) for CSS and JS changes
- Configure source maps for debugging in AEM context
- Implement BrowserSync or similar for multi-device testing
Step 4: Optimization
Apply production optimizations to build output.
- Configure tree-shaking for unused code elimination
- Implement code splitting for route-based or component-based chunks
- Set up CSS optimization (purging, minification, autoprefixer)
- Configure long-term caching with content hashing
Step 5: CI/CD Integration
Integrate frontend build into deployment pipeline.
- Configure Maven build to trigger npm build via frontend-maven-plugin
- Set up Node.js version management in CI environment
- Implement build caching for faster CI runs
- Configure environment-specific builds (dev, stage, prod)
Quality Checklist
- Production build outputs optimized, minified bundles
- Source maps available for debugging but not shipped to CDN
- Client library categories correctly mapped to page regions
- No JavaScript errors in browser console on any page template
- CSS doesn't conflict between components (scoped or namespaced)
- Build time under 60 seconds for full production build
- Hot reload works for both CSS and JS changes in development
- Bundle size within budget (< 200KB JS gzipped for initial load)
Related Skills
- aem-component-development (frontend of components)
- aem-caching-strategy (clientlib caching with fingerprinting)
- aem-performance-tuning-profiling (frontend performance measurement)
Example Use Cases
- Design System Integration: Implement a shared design system (Storybook-based) that compiles into AEM clientlibs, enabling component development outside AEM with seamless integration via the build pipeline.
- SPA Migration: Convert traditional AEM site to React SPA using AEM SPA Editor SDK, configuring webpack for both SPA Editor-compatible builds and standalone development mode with mock data.
- Micro-Frontend Architecture: Implement Module Federation (webpack 5) for independently deployable frontend features within AEM, enabling different teams to deploy frontend changes without full site rebuild.
Notes
frontend-maven-plugindownloads and manages Node.js — don't require global Node installation for builds- Client library categories determine loading order — plan categories carefully to avoid blocking rendering
- AEM Cloud Service supports the same frontend build patterns as on-premise
- Vite is gaining adoption for AEM frontend builds due to faster dev server and simpler configuration
Gives 0 of the 12 instructions most design frontend skills give
Counted across 1,170 of the 1,878 authors here whose files we hold, read 2026-08-06
- use css variables for color consistencyin 73 of 1170, across 24 files
- match implementation complexity to the aesthetic visionin 70 of 1170, across 20 files
- commit to one bold aesthetic direction before codingin 70 of 1170, across 25 files
- add atmospheric background effects and texturesin 58 of 1170, across 10 files
- use unexpected spatial compositions and layoutsin 55 of 1170, across 7 files
- implement real working codein 55 of 1170, across 7 files
- vary themes and aesthetics across different designsin 48 of 1170, across 7 files
- launch chromium in headless modein 47 of 1170, across 4 files
- close the browser when donein 47 of 1170, across 4 files
- run provided scripts with help flag firstin 47 of 1170, across 4 files
- use descriptive selectors for elementsin 47 of 1170, across 4 files
- wait for network idle statein 46 of 1170, across 3 files
Said here and by no other author read
- initialize frontend module
- configure package json build scripts
- configure bundler with entry points per clientlib
- configure clientlib generator for clientlib creation
- set up css extraction and optimization
- enable hot module replacement
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.