Initial commit
This commit is contained in:
26
vite.config.ts
Normal file
26
vite.config.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from "vite";
|
||||
import webExtension, { readJsonFile } from "vite-plugin-web-extension";
|
||||
|
||||
function generateManifest() {
|
||||
const manifest = readJsonFile("src/manifest.json");
|
||||
const pkg = readJsonFile("package.json");
|
||||
return {
|
||||
name: "Open Twitch Metrics",
|
||||
version: pkg.version,
|
||||
...manifest,
|
||||
};
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
webExtension({
|
||||
manifest: generateManifest,
|
||||
watchFilePaths: ["package.json", "manifest.json"],
|
||||
browser: "firefox",
|
||||
additionalInputs: [
|
||||
"src/content/page.ts",
|
||||
"src/shared/i18n.ts"
|
||||
]
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user