yup-live-chrome-extension/vite.config.ts

19 lines
457 B
TypeScript
Raw Normal View History

2023-02-13 19:20:50 +00:00
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
},
},
});