17 lines
363 B
TypeScript
17 lines
363 B
TypeScript
import { crx } from "@crxjs/vite-plugin";
|
|
import { defineConfig } from "vite";
|
|
import manifest from "./src/manifest.json" with { type: "json" };
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: false,
|
|
rollupOptions: {
|
|
input: {
|
|
popup: "src/popup/popup.html",
|
|
},
|
|
},
|
|
},
|
|
plugins: [crx({ manifest })],
|
|
});
|