-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
27 lines (26 loc) · 1 KB
/
vite.config.js
File metadata and controls
27 lines (26 loc) · 1 KB
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// import { resolve } from "path";
// https://vite.dev/config/
export default defineConfig({
plugins: [tailwindcss(), react()],
// build: {
// outDir: "dist", // <- where the final extension will live
// rollupOptions: {
// input: {
// content: resolve(new URL("src/utils/content.js", import.meta.url).pathname),
// background: resolve(
// new URL("src/utils/background.js", import.meta.url).pathname
// ),
// // optional popup window or dev tools:
// // popup: resolve(__dirname, 'src/popup/index.html')
// },
// output: {
// entryFileNames: "[name].js", // <- keep clean names: content.js, background.js
// chunkFileNames: "assets/[name]-[hash].js", // <- where shared code goes
// assetFileNames: "assets/[name]-[hash][extname]", // <- for images, fonts, etc.
// },
// },
// },
});