generated from NekitCorp/chrome-extension-svelte-typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
28 lines (27 loc) · 793 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import {crx} from "@crxjs/vite-plugin";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { defineConfig } from "vite";
import manifest from "./src/manifest.config";
import purgeCss from "vite-plugin-tailwind-purgecss";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte({
emitCss: false,
}), crx({ manifest }), purgeCss()],
// HACK: https://github.com/crxjs/chrome-extension-tools/issues/696
// https://github.com/crxjs/chrome-extension-tools/issues/746
server: {
port: 5173,
strictPort: true,
hmr: {
clientPort: 5173,
},
},
build: {
rollupOptions: {
input: {
dashboard: 'src/dashboard/dashboard.html',
}
}
}
});