yup-live-chrome-extension/vite.config.ts
2023-02-13 21:20:50 +02:00

19 lines
457 B
TypeScript

import { crx } from "@crxjs/vite-plugin";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { resolve } from "path";
import { defineConfig } from "vite";
import manifest from "./manifest.json";
const srcDir = resolve(__dirname, "src");
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte(), crx({ manifest })],
resolve: {
alias: {
src: srcDir,
'@': srcDir
},
},
});