Chrome Extension Boilerplate with SolidJS + Vite + TypeScript + Manifest V3 + Hot Relaod

Overview
logo

Chrome Extension Boilerplate with
SolidJS + Vite + TypeScript + Manifest V3 + Hot Relaod

Intro

This boilerplate is made for creating chrome extensions using SolidJS and Typescript.

The focus was on improving the build speed and development experience with Vite.

Features

Installation

Procedures

  1. Clone this repository.
  2. Change name and description in package.json => Auto synchronize with manifest
  3. Run yarn or npm i (check your node version >= 16)
  4. Run yarn dev or npm run dev
  5. Load Extension on Chrome
    1. Open - Chrome browser
    2. Access - chrome://extensions
    3. Check - Developer mode
    4. Find - Load unpacked extension
    5. Select - dist folder in this project (after dev or build)
  6. If you want to build in production, Just run yarn build or npm run build.

Screenshots

image

Documents

You might also like...

Minimal setup for a WebXR project using Vite, Babylon.js, TypeScript, and Vue

Minimal setup for a WebXR project using Vite, Babylon.js, TypeScript, and Vue

WebXR-Vite-Babylon-Simple Minimal setup for WebXR development using: vite typescript vue 3 babylonjs 5 (ES6) Intentionally made minimal changes from t

Nov 13, 2022

Veloce: Starter template that uses Vue 3, Vite, TypeScript, SSR, Pinia, Vue Router, Express and Docker

Veloce Lightning-fast cold server start Instant hot module replacement (HMR) and dev SSR True on-demand compilation Tech Stack Vue 3: UI Rendering lib

Oct 7, 2022

A Marko plugin for Vite

A Marko plugin for Vite

@marko/vite A Marko plugin for Vite. Installation npm install @marko/vite Example config import { defineConfig } from "vite"; import marko from "@mark

Nov 26, 2022

🎉 基于 vite 2.0 + vue 3.0 + vue-router 4.0 + vuex 4.0 + element-plus 的后台管理系统vue3-element-admin

vue3-element-admin 🎉 基于 Vite 2.0 + Vue3.0 + Vue-Router 4.0 + Vuex 4.0 + element-plus 的后台管理系统 简介 vue3-element-admin 是一个后台前端解决方案,它基于 vue3 和 element-plu

Nov 28, 2022

Integrate Tauri in a Vite project to build cross-platform apps.

vite-plugin-tauri Integrate Tauri in a Vite project to build cross-platform apps Install Make sure to setup your environment for Tauri development. Th

Dec 15, 2022

A template repository / quick start to build Azure Static Web Apps with a Node.js function. It uses Vue.js v3, Vue Router, Vuex, and Vite.js.

A template repository / quick start to build Azure Static Web Apps with a Node.js function. It uses Vue.js v3, Vue Router, Vuex, and Vite.js.

Azure Static Web App Template with Node.js API This is a template repository for creating Azure Static Web Apps that comes pre-configured with: Vue.js

Jun 25, 2022

⏳ vue3 + electron + ts + vite = mini template

v3-electron 🥳 Electron16 + Vue3 + Vite2 运行项目 # enter the project directory cd v3-electron # install dependency yarn # develop yarn dev # build exe

Nov 11, 2022

Some compile-time magic for your Vite project

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub. vite-plugin-compile-time Use this plugin to generate

Dec 15, 2022

vite+vue3.2+setup+elementPlus+eslint+js+stylelint

前期准备工作,npm包和vscode配置 !!!很重要,关乎整个Vue3开发阶段的代码提示 Volar使用 使用Vue3开发需要禁用vscode插件Vetur 然后安装 Volar(Vue Language Features),这样Vue3代码提示即使是使用js开发也非常友好 如果volar没有任何

Feb 8, 2022
Comments
  • development build: solidjs reactivity is broken

    development build: solidjs reactivity is broken

    i have this simple src/pages/options/Options.tsx

    setResults has no effect in development build, but it works in production build

    probably same issue as #7

    import logo from "@assets/img/logo.svg";
    import "@src/styles/index.css";
    import styles from "./Options.module.css";
    import {createSignal} from "solid-js"
    import {For} from "solid-js"
    
    const Options = () => {
      let searchButton;
      const [getResults, setResults] = createSignal([
        "result0",
        "result0",
      ])
      setTimeout(() => {
        // update results
        console.log("update")
        setResults((old) => old.concat(["result3"]))
        setResults((old) => old.concat(["result4"]))
      }, 1000)
      function startSearch(event) {
        event.preventDefault()
        console.log("submit")
        searchButton.innerHTML = "Searching...";
        searchButton.disabled = true;
        // clear results
        console.log("clear")
        setResults([
          "result1",
          "result2",
        ])
        // update results
        console.log("update")
        setResults((old) => old.concat(["result3"]))
        setResults((old) => old.concat(["result4"]))
      }
      return (
        <div class={styles.App}>
          <form class={styles.form} onSubmit={startSearch}>
            <input/>
            <button ref={searchButton}>Search</button>
          </form>
          <ol class={styles.results}>
            <For each={getResults()}>
              {result => (
                <li>result: {JSON.stringify(result, null, 2)}</li>
              )}
            </For>
          </ol>
          <pre>{JSON.stringify(getResults(), null, 2)}</pre>
        </div>
      );
    };
    
    export default Options;
    
    
    opened by milahu 1
  • development build: error: Could not resolve entry module (../../../../../../@vite/client).

    development build: error: Could not resolve entry module (../../../../../../@vite/client).

    npm run dev hangs

    npm run dev 
    
    > [email protected] dev
    > vite build -w
    
    vite v4.0.3 building for production...
    
    watching for file changes...
    
    build started...
    ✓ 2 modules transformed.
    Could not resolve entry module "../../../../../../@vite/client".
    transforming (8) src/styles/index.css
    

    npm run build works

    upstream issue https://github.com/crxjs/chrome-extension-tools/issues/323

    opened by milahu 1
  • Hot Reload not working either on popup, tabs or panel

    Hot Reload not working either on popup, tabs or panel

    What is the problem

    Hot Reload not working either on popup, tabs or panel. No changes are displayed until reloaded manually.

    Expected

    It should load page changes via Hot Reload

    Steps to Reproduce

    Just clone the project and run it locally

    • yarn dev (or yarn dev:mon)
    • modify and save a page tax file

    Nodemon rebuilds but HMR does not work on any of the Pages. Changes are only applied when reopening the popup, reloading the options or the new tab, or reopening devtools.

    opened by packetstracer 1
  • Fails to load resource for content script

    Fails to load resource for content script

    What is the problem

    Failed to load resource: the server responded with a status of 404 (Not Found) logo.15c0ac83.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) demoIndex.chunk.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

    Expected

    The base project should just run without any modifications

    Steps to Reproduce

    Just clone the project and run it locally

    opened by abhipatelproject 0
Owner
fuyutarow
fuyutarow
⚡️ Vite + SolidJS + Electron boilerplate.

vite-solid-electron Overview Very simple Vite, SolidJS, Electron integration template. Contains only the basic dependencies. The extension is very fle

Christian Hansen 25 Dec 18, 2022
Experimenting with vite typescript template rewrite for hot.opensauced.pizza

?? Open Sauced Vite Typescript Template Test ?? The path to your next Open Source contribution ?? Prerequisites In order to run the project we need th

TED Vortex (Teodor-Eugen Duțulescu) 3 Mar 11, 2022
Get Vite's `import.meta.hot` at runtime

vite-hot-client Get Vite's import.meta.hot at runtime. You don't normally need this library directly. It's designed for embedded UI on top of Vite for

Anthony Fu 29 May 3, 2022
Vite-plugin-web-extension - A vite plugin for generating cross browser platform, ES module based web extensions.

vite-plugin-web-extension A vite plugin for generating cross browser platform, ES module based web extensions. Features Manifest V2 & V3 Support Compl

Ruben Medina 81 Dec 31, 2022
Modern ThreeJS boilerplate powered by Vite & Typescript

Modern ThreeJS ⚡️ Modern ThreeJS boilerplate powered by Vite & Typescript. Features Powered with Vite ?? GUI controls using Tweakpane ?? Typescript ??

Alvaro Saburido 64 Jan 4, 2023
Vue 3 + Vite + SSR template based on Vite Plugin SSR and inspired by Vitesse

Vite Vue SSR Starter Vue 3 + Vite + SSR template based on Vite Plugin SSR and inspired by Vitesse Features ⚡️ Vue 3, Vite 2, TypeScript ?? Domain-Driv

Oleg Koval 10 Aug 2, 2022
Fastify boilerplate with Vite & Vitest

Fastify boilerplate with Vite & Vitest Enhance your Fastify DX with the power of Vite & Vitest. Features ⚡ All the power of Vite (Next Generation Fron

Emmanuel Salomon 31 Dec 13, 2022
Vite template with TypeScript, Chakra UI, Eslint Airbnb, Prettier

Vite + Typescript + ChakraUI = ❤️ This is a vite template that combines several technologies: Vite React TypeScript ChakraUI Eslint with eslint-config

Lorenzo Rapetti 3 Mar 26, 2022
Using Cypress with Vite, React, TypeScript, MSW and react-query

Vie + Cypress + MSW + react-query Demo Example of using Cypress with Vite, MSW and react-query. Uses the appReady pattern to signal to Cypress when th

Rob Caldecott 9 Jul 16, 2022
vue3 + vite + typescript template

Vue 3 + Typescript + Vite This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setu

BrowLi 6 Aug 1, 2022