0.0.0 • Published 3 years ago
bv-vite-crx v0.0.0
vite-plugin-chrome-extension
fork from rollup-plugin-chrome-extension and evolve for
viteandChrome Extension Manifest V3
Table of Contents
Installation
npm install -D vite-plugin-chrome-extensionUsage
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
0.0.0
3 years ago