<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vite - Tag - Dimas Maulana</title>
    <link>https://dimasmaulana.pages.dev/tags/vite/</link>
    <description>Dimas Maulana Website</description>
    <generator>Hugo 0.150.0 &amp; FixIt v0.4.3-20260130042349-e23a50d7</generator>
    <language>en</language>
    <lastBuildDate>Thu, 25 May 2023 05:26:00 +0700</lastBuildDate>
    <atom:link href="https://dimasmaulana.pages.dev/tags/vite/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Removing All Comments, Including Legal Ones on Vite Build</title>
      <link>https://dimasmaulana.pages.dev/posts/productivity/removing-all-comments-including-legal-ones-on-vite-build/</link>
      <pubDate>Thu, 25 May 2023 05:26:00 +0700</pubDate>
      <guid>https://dimasmaulana.pages.dev/posts/productivity/removing-all-comments-including-legal-ones-on-vite-build/</guid>
      <category domain="https://dimasmaulana.pages.dev/categories/productivity/">Productivity</category>
      <description>&lt;p&gt;In software development, comments serve as a valuable tool for code documentation, explanations, and annotations. However, there are situations where it may be necessary or desirable to remove all comments, including legal ones, from your Vite builds. In this article, we will explore how to achieve this by utilizing the legalComments option in Vite&amp;rsquo;s esbuild configuration.&lt;/p&gt;&#xA;&lt;h2 class=&#34;heading-element&#34; id=&#34;understanding-the-legalcomments-option&#34;&gt;&lt;span&gt;Understanding the &lt;code&gt;legalComments&lt;/code&gt; Option&lt;/span&gt;&#xA;  &lt;a href=&#34;#understanding-the-legalcomments-option&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&lt;p&gt;Vite, a fast and efficient web development build tool, incorporates the esbuild plugin to optimize JavaScript and TypeScript code. One of the available options for esbuild is &lt;code&gt;legalComments&lt;/code&gt;, which allows developers to control the inclusion of legal comments in the final build output.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Enable Obfuscation on Vite Build with HTTP Headers</title>
      <link>https://dimasmaulana.pages.dev/posts/development/how-to-enable-obfuscation-on-vite-build-with-http-headers/</link>
      <pubDate>Thu, 25 May 2023 05:13:00 +0700</pubDate>
      <guid>https://dimasmaulana.pages.dev/posts/development/how-to-enable-obfuscation-on-vite-build-with-http-headers/</guid>
      <category domain="https://dimasmaulana.pages.dev/categories/development/">Development</category>
      <description>&lt;p&gt;Obfuscation is a technique used to obscure code and make it harder for others to understand or reverse-engineer. If you&amp;rsquo;re using Vite as your build tool for a JavaScript project and want to enable obfuscation, this article will guide you through the process. Additionally, we&amp;rsquo;ll explore how to enhance the security of your obfuscated code by configuring HTTP headers appropriately.&lt;/p&gt;&#xA;&lt;h3 class=&#34;heading-element&#34; id=&#34;step-1-install-required-packages&#34;&gt;&lt;span&gt;Step 1: Install Required Packages&lt;/span&gt;&#xA;  &lt;a href=&#34;#step-1-install-required-packages&#34; class=&#34;heading-mark&#34;&gt;&#xA;    &lt;svg class=&#34;octicon octicon-link&#34; viewBox=&#34;0 0 16 16&#34; version=&#34;1.1&#34; width=&#34;16&#34; height=&#34;16&#34; aria-hidden=&#34;true&#34;&gt;&lt;path d=&#34;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&#34;&gt;&lt;/path&gt;&lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h3&gt;&lt;p&gt;Step 1: Install Required Packages&#xA;Start by navigating to your project directory and opening the terminal. Then, run the following command to install the required dev dependencies:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
