Hi Team
Kindly let me know if any command build only Frontend module changes to deploy AEM local Same as core module (other than mvn clean install for ui.frontend module.
Core Module:
mvn clean install -PautoInstallBundle
Regards
Vara
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The problem is that the ui.frontEnd module needs to be compiled, built, minified, and packaged using webpack to be deployable on the AEM server. So, there isn't a direct Maven command, but you would have to run at least 2 commands. However, you could use two approaches:
Sync the HTML/HTL code using an external tool such as AEM Sync for VS. You can learn more about this tool here: AEM Sync for VS.
Use the webpack static server to develop your front-end code in a hot-swap manner. Simply run the command npm run dev
once you're set up in the ui.frontEnd folder. You can learn more about this approach here:
I hope this helps.
Hi,
The problem is that the ui.frontEnd module needs to be compiled, built, minified, and packaged using webpack to be deployable on the AEM server. So, there isn't a direct Maven command, but you would have to run at least 2 commands. However, you could use two approaches:
Sync the HTML/HTL code using an external tool such as AEM Sync for VS. You can learn more about this tool here: AEM Sync for VS.
Use the webpack static server to develop your front-end code in a hot-swap manner. Simply run the command npm run dev
once you're set up in the ui.frontEnd folder. You can learn more about this approach here:
I hope this helps.
Hi Team
Challenges is not able to install any extensions at Visual Source code due secure network.
we are able build all module except ui-frontend which required install npm and node.
Is possible stop Insall or download npm and node used local installed npm and node while using "frontend-maven-plugin" or advise how refer the proxy local registry.
main pom.xml
Local env
npm and node versions same
C:\Users\userid\npmrc.txt
always-auth=true
registry=http://xxxxxxxxxxxxxxxx/nexus/repository/Publicnpm/
//xxxxxxxxxxx:8081/:_auth=xxxxxxxxxxxxxxxxx
Not sure how to check npmrc.txt configuration working or not?
Regards
Vara
Views
Replies
Total Likes
We can't deploy ui.frontend module directly to aem instance as the purpose of frontend module is to build and bundle the frontend code and push to clientlib(s) under ui.apps.
Use storybook to test the frontend changes quickly.
Views
Replies
Total Likes
You can use AEM FED && AEM Sync w/ WebPack for local development for the best results. Hot-reloading works perfectly. The latest AEM maven module already has all this setup, https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/ui.frontend.general/p...
AEM FED -> https://aemfed.io/
Views
Likes
Replies
Views
Likes
Replies