bv-vite-crx
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

vite-plugin-chrome-extension

fork from rollup-plugin-chrome-extension and evolve for vite and Chrome Extension Manifest V3

Table of Contents

Installation

npm install -D vite-plugin-chrome-extension

Usage

In vite.config.ts,

// vite.config.ts
import { resolve } from "path";
import { defineConfig } from "vite";
import { chromeExtension } from "vite-plugin-chrome-extension";

export default defineConfig({
    resolve: {
        alias: {
            "@": resolve(__dirname, "src"),
        },
    },
    build: {
        rollupOptions: {
            input: "src/manifest.json"
        }
    },
    plugins: [
        chromeExtension()
    ],
})

TODO

  • support sass/less in manifest.json

Package Sidebar

Install

npm i bv-vite-crx

Weekly Downloads

3

Version

0.0.0

License

MIT

Unpacked Size

664 kB

Total Files

48

Last publish

Collaborators

  • foyewy