mirror of
https://github.com/LalleSX/4chan-XZ.git
synced 2025-10-07 07:22:37 +02:00
25 lines
587 B
TypeScript
25 lines
587 B
TypeScript
import { defineConfig, loadEnv } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import webExtension from "@samrum/vite-plugin-web-extension";
|
|
import path from "path";
|
|
import { getManifest } from "./src/manifest";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, process.cwd(), "");
|
|
|
|
return {
|
|
plugins: [
|
|
react(),
|
|
webExtension({
|
|
manifest: getManifest(Number(env.MANIFEST_VERSION)),
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"~": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
};
|
|
});
|