<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by jujekebab on Medium]]></title>
        <description><![CDATA[Stories by jujekebab on Medium]]></description>
        <link>https://medium.com/@tofuredbull?source=rss-523c04beb042------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_8YXJzjkXF1YjoP0RvVNKQ.jpeg</url>
            <title>Stories by jujekebab on Medium</title>
            <link>https://medium.com/@tofuredbull?source=rss-523c04beb042------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:35:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tofuredbull/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting up frontend dev-server for AEM]]></title>
            <link>https://medium.com/@tofuredbull/setting-up-frontend-dev-server-for-aem-058aa615892c?source=rss-523c04beb042------2</link>
            <guid isPermaLink="false">https://medium.com/p/058aa615892c</guid>
            <category><![CDATA[aem-developer]]></category>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[webpack]]></category>
            <dc:creator><![CDATA[jujekebab]]></dc:creator>
            <pubDate>Wed, 18 Dec 2024 14:01:48 GMT</pubDate>
            <atom:updated>2024-12-18T14:01:48.705Z</atom:updated>
            <content:encoded><![CDATA[<h3>## Summary</h3><p>If you generated AEM project with AEM project archetype, you can start dev server by running `cd ui.frontend &amp;&amp; npm run watch` but it does not somehow reflect changes you make in the css files immidiately.</p><p>In this article, I’ll show you how to set up front-end development environment that reflects changes immediately that boosts up your UI development speed on AEM.</p><h3>## Prerequisites</h3><p>First, change the `start` command in `package.json` to the following:</p><pre>&quot;start&quot;: &quot;webpack-dev-server - open - config ./webpack.dev.js - env writeToDisk=true&quot;,</pre><p>By default, webpack-dev-server serves the bundled files from memory for better performance during development. By doing this, webpack-dev-server will write to disk instead of keeping them only in memory.</p><p>You can still work on port 4502 but 8080 reloads much faster.</p><h3>## Using webpack-dev-server</h3><p>In your local author instance, go to any page and click `View as published` and view page source and copy the entire html content.<br>Then, go to `ui.frontend/src/main/webpack/index.html` and paste the content into `index.html`.</p><p>In the HTML you pasted, remove the `&lt;link/&gt;` and `&lt;script/&gt;` tags that include `clientlib-site` or `clientlib-dependencies`.</p><pre>&lt;! - remove →<br>&lt;script type=&quot;text/javascript&quot; src=&quot;/etc.clientlibs/wknd/clientlibs/clientlib-dependencies.js&quot;&gt;&lt;/script&gt;<br>&lt;link rel=&quot;stylesheet&quot; href=&quot;/etc.clientlibs/wknd/clientlibs/clientlib-dependencies.css&quot; type=&quot;text/css&quot;&gt;<br>&lt;link rel=&quot;stylesheet&quot; href=&quot;/etc.clientlibs/wknd/clientlibs/clientlib-site.css&quot; type=&quot;text/css&quot;&gt;<br>…<br>&lt;script type=&quot;text/javascript&quot; src=&quot;/etc.clientlibs/wknd/clientlibs/clientlib-site.js&quot;&gt;&lt;/script&gt;h</pre><p>Now you can `cd ui.frontend &amp;&amp; npm start` and visit `<a href="http://localhost:8080`">http://localhost:8080`</a>.</p><p>You can update your css files and see changes immediately. This is very useful when you are developing UI for AEM.</p><p>Happy hacking.</p><h3>## References</h3><ul><li><a href="https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/client-side-libraries#:~:text=Tools%20and%20Resources-,Webpack%20DevServer%20%2D%20Static%20Markup,-In%20the%20previous">Client libraries and front-end workflow</a></li><li><a href="https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/component-basics#client-side-libraries">Getting Started with AEM Sites</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=058aa615892c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>