<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yash Dayama</title>
    <description>The latest articles on DEV Community by Yash Dayama (@yashdayama).</description>
    <link>https://dev.to/yashdayama</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1449615%2F4d56b32e-5c72-46db-9a47-e26f4a9a7de2.jpeg</url>
      <title>DEV Community: Yash Dayama</title>
      <link>https://dev.to/yashdayama</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yashdayama"/>
    <language>en</language>
    <item>
      <title>Why Vite.js Is Trending Everywhere</title>
      <dc:creator>Yash Dayama</dc:creator>
      <pubDate>Thu, 09 May 2024 17:16:37 +0000</pubDate>
      <link>https://dev.to/yashdayama/why-vitejs-is-trending-everywhere-509g</link>
      <guid>https://dev.to/yashdayama/why-vitejs-is-trending-everywhere-509g</guid>
      <description>&lt;p&gt;Vite.js: The Fast Way to Build Modern Websites&lt;/p&gt;

&lt;p&gt;Vite.js helps developers make websites quickly. It's all about speed and making the development process better.&lt;/p&gt;

&lt;p&gt;It's popular because it's fast and easy. It's like Vite and webpack are the superheroes that make big web projects less messy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is Vite Getting So Popular?
&lt;/h2&gt;

&lt;p&gt;Even though it's only been around for four years, Vite is making waves. It's a special tool for making web projects faster and simpler.&lt;/p&gt;

&lt;p&gt;What Makes Vite Special?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A quick dev server&lt;/strong&gt;: This helps developers work fast. It uses special features like hot module replacement to speed things up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A tool for building&lt;/strong&gt;: Vite bundles your code neatly for the final website. This makes the website load quickly and work well.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Did We Get Here?
&lt;/h2&gt;

&lt;p&gt;In the past, working with JavaScript was simpler. But as websites got more complex, so did JavaScript. People started using tools like Gulp and Grunt to handle all the complicated stuff.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Web app&amp;lt;/title&amp;gt;
    &amp;lt;script type="text/javascript" src="//my.cdn/script.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;!-- Content here --&amp;gt;
    &amp;lt;script&amp;gt;
        var scope = {}
        //work with js
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then came Webpack. It was a big deal because it made bundling JavaScript easy. But developers wanted something even faster.&lt;/p&gt;

&lt;p&gt;That's where Vite comes in.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Does Vite Work?
&lt;/h2&gt;

&lt;p&gt;Vite's magic lies in how it handles different parts of your project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;It separates the parts of your code that rarely change from the ones that do.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The parts that don't change much are bundled together quickly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The parts that change a lot are served directly to your browser, so you can see changes instantly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Vite makes development faster without sacrificing performance.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cold Start Speed&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Traditional bundler-based setups involve eager crawling and necessitate building the entire application before serving, leading to noticeable delays, particularly in complex projects.&lt;/p&gt;

&lt;p&gt;Vite revolutionizes cold starts with a fundamentally different approach, dramatically reducing initialization time:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehe7lwq3u2y97ulbdi7w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehe7lwq3u2y97ulbdi7w.png" alt="Image description" width="800" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Comparison for bundle dev base server and Native ESM based Server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1rwvka0irqzgkydqlyt1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1rwvka0irqzgkydqlyt1.png" alt="Image description" width="800" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Vite utilizes native ES modules to serve source code, minimizing server load and latency. Source code transformation and serving occur upon browser requests, enhancing efficiency and reducing wait times.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl8omb9eyhzyrff2y6lod.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl8omb9eyhzyrff2y6lod.png" alt="Image description" width="800" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Webpack, on the other hand, adopts a bundle-based approach, pre-bundling source code and dependencies, extending server start times during development. Compared to Vite’s efficient initialization, Webpack’s server setup time is inherently longer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Should You Care?
&lt;/h2&gt;

&lt;p&gt;Vite is changing the game for web developers. It's making things easier and faster, which means developers can spend more time creating and less time waiting.&lt;/p&gt;

&lt;p&gt;Try Vite and see how it can supercharge your web projects!&lt;/p&gt;




&lt;p&gt;Happy Coding 💾 &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Unlocking Efficiency with Ngrok: Setting Up Multiple Ports Made Simple!</title>
      <dc:creator>Yash Dayama</dc:creator>
      <pubDate>Thu, 25 Apr 2024 16:57:54 +0000</pubDate>
      <link>https://dev.to/yashdayama/unlocking-efficiency-with-ngrok-setting-up-multiple-ports-made-simple-n66</link>
      <guid>https://dev.to/yashdayama/unlocking-efficiency-with-ngrok-setting-up-multiple-ports-made-simple-n66</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft05axe1njtdpdakdvez8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft05axe1njtdpdakdvez8.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>node</category>
    </item>
  </channel>
</rss>
