<?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: Muhammad Ubaid Raza</title>
    <description>The latest articles on DEV Community by Muhammad Ubaid Raza (@mubaidr).</description>
    <link>https://dev.to/mubaidr</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%2F98836%2F53e8281c-ca4f-4054-b09d-5b1c2b1fefbe.jpeg</url>
      <title>DEV Community: Muhammad Ubaid Raza</title>
      <link>https://dev.to/mubaidr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mubaidr"/>
    <language>en</language>
    <item>
      <title>Kickstart Your Browser Extension Development with Vite, Vue 3, and Manifest V3</title>
      <dc:creator>Muhammad Ubaid Raza</dc:creator>
      <pubDate>Tue, 13 Aug 2024 07:34:09 +0000</pubDate>
      <link>https://dev.to/mubaidr/kickstart-your-browser-extension-development-with-vite-vue-3-and-manifest-v3-3dlh</link>
      <guid>https://dev.to/mubaidr/kickstart-your-browser-extension-development-with-vite-vue-3-and-manifest-v3-3dlh</guid>
      <description>&lt;h2&gt;
  
  
  Kickstart Your Browser Extension Development with Vite, Vue 3, and Manifest V3
&lt;/h2&gt;

&lt;p&gt;Are you looking for a quick and efficient way to start building browser extensions with modern web technologies? Introducing our &lt;strong&gt;Vite-powered WebExtension Starter Template&lt;/strong&gt;! This template is designed to streamline your development process by combining &lt;strong&gt;Vue 3&lt;/strong&gt;, &lt;strong&gt;Vite&lt;/strong&gt;, and &lt;strong&gt;Manifest V3&lt;/strong&gt;, enabling you to create powerful and efficient extensions for Chrome, Firefox, and other browsers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Template?
&lt;/h2&gt;

&lt;p&gt;Building a browser extension from scratch can be a daunting task, especially when you want to leverage the latest technologies like &lt;strong&gt;Vue 3&lt;/strong&gt; and &lt;strong&gt;Vite&lt;/strong&gt;. Our template is pre-packed with essential features, making it easier for you to focus on developing your extension rather than setting up the environment.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vue 3 Composition API&lt;/strong&gt;: Harness the full power of Vue 3 with Composition API and &lt;code&gt;&amp;lt;script setup&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HMR (Hot Module Replacement)&lt;/strong&gt;: Get instant feedback with HMR support for extension pages and content scripts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tailwind CSS &amp;amp; daisyUI&lt;/strong&gt;: Style your extensions effortlessly with Tailwind CSS, enhanced by daisyUI components.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript&lt;/strong&gt;: Enjoy a type-safe development experience with full TypeScript support.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated Build Process&lt;/strong&gt;: Easily build and release your extension using GitHub Actions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Webext-Bridge&lt;/strong&gt;: Simplify communication between contexts with Webext-Bridge.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Full Feature List
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vue DevTools Support&lt;/strong&gt;: Debug your Vue applications in extension pages and content scripts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vue Router&lt;/strong&gt;: Automatic route registration powered by &lt;code&gt;unplugin-vue-router&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto-Imported Components&lt;/strong&gt;: Automatically import components and icons with &lt;code&gt;unplugin-vue-components&lt;/code&gt; and &lt;code&gt;unplugin-icons&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-configured ESLint &amp;amp; Prettier&lt;/strong&gt;: Maintain code quality with pre-configured ESLint and Prettier for Vue, JavaScript, and TypeScript.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UI Frameworks&lt;/strong&gt;: Utilize Tailwind CSS plugins for typography, forms, and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Browser Support&lt;/strong&gt;: Build for Chrome, Firefox, and other Chromium-based browsers with specific configurations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Usage Instructions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Clone and Get Started
&lt;/h3&gt;

&lt;p&gt;To get started, clone the template:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpx degit mubaidr/vite-vue3-browser-extension-v3 my-webext
&lt;span class="nb"&gt;cd &lt;/span&gt;my-webext
pnpm i
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Project Structure
&lt;/h3&gt;

&lt;p&gt;The template is organized for easy navigation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;src&lt;/strong&gt;: Main source directory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;content-script&lt;/strong&gt;: Scripts and components for content scripts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;background&lt;/strong&gt;: Background scripts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;popup&lt;/strong&gt;: Popup Vue.js application.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;options&lt;/strong&gt;: Options Vue.js application.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;setup&lt;/strong&gt;: Pages for install and update events.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;offscreen&lt;/strong&gt;: Offscreen pages for advanced functionalities like audio or screen recording.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;components&lt;/strong&gt;: Shared Vue components.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Development and Build
&lt;/h3&gt;

&lt;p&gt;To start the development server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To build the extension for production:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Browser Configurations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;manifest.config.ts&lt;/strong&gt;: Base extension manifest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;vite.config.ts&lt;/strong&gt;: Base Vite configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contribute and Provide Feedback
&lt;/h2&gt;

&lt;p&gt;We're constantly working on improving this template, and your feedback is invaluable. Please take a moment to fill out our feedback form and let us know what features you'd like to see or if you'd be interested in purchasing the template once it's ready. Your responses will shape the future of this project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;This Vite Vue 3 WebExtension template is designed to make your development experience smooth and efficient. Whether you’re building a simple utility or a complex extension, this template has you covered. Try it out and let us know what you think!&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>vue</category>
      <category>vite</category>
      <category>extensions</category>
    </item>
  </channel>
</rss>
