Closed MyAssistantSDK closed 2 years ago
import path from "path"; import { defineConfig } from "vite"; import browserExtension, { readJsonFile } from "vite-plugin-web-extension";
function root(...paths: string[]): string { return path.resolve(__dirname, ...paths); }
export default defineConfig({ root: "src", build: { outDir: root("dist"), emptyOutDir: true, }, plugins: [ browserExtension({ manifest: root("src/manifest.json"), assets: "assets", additionalInputs: ["content-scripts/script1/index.ts"], watchFilePaths: [root("src/manifest.json")], verbose: true, browser: process.env.TARGET || "chrome", }), ], });
import path from "path"; import { defineConfig } from "vite"; import browserExtension, { readJsonFile } from "vite-plugin-web-extension";
function root(...paths: string[]): string { return path.resolve(__dirname, ...paths); }
export default defineConfig({ root: "src", build: { outDir: root("dist"), emptyOutDir: true, }, plugins: [ browserExtension({ manifest: root("src/manifest.json"), assets: "assets", additionalInputs: ["content-scripts/script1/index.ts"], watchFilePaths: [root("src/manifest.json")], verbose: true, browser: process.env.TARGET || "chrome", }), ], });