1- import { defineConfig } from ' vite'
2- import react from ' @vitejs/plugin-react-swc'
3- import tailwindcss from ' @tailwindcss/vite'
1+ import { defineConfig } from " vite" ;
2+ import react from " @vitejs/plugin-react-swc" ;
3+ import tailwindcss from " @tailwindcss/vite" ;
44
55// https://vite.dev/config/
66export default defineConfig ( {
@@ -9,28 +9,27 @@ export default defineConfig({
99 rollupOptions : {
1010 input : {
1111 // DevTools panel (React app)
12- panel : ' index.html' ,
12+ panel : " index.html" ,
1313 // DevTools entry point
14- devtools : 'src/devtools/devtools.html' ,
14+ devtools : "devtools.html" ,
15+ // devtools: 'src/devtools/devtools.html',
1516 // Content script
16- content : ' src/content/content.ts' ,
17+ content : " src/content/content.ts" ,
1718 // Background service worker
18- background : ' src/background/background.ts' ,
19+ background : " src/background/background.ts" ,
1920 // Injected script
20- injected : ' src/injected/injected.ts' ,
21+ injected : " src/injected/injected.ts" ,
2122 } ,
2223 output : {
2324 entryFileNames : ( chunkInfo ) => {
24- // Keep extension files in their respective directories
25- if ( chunkInfo . name === 'devtools' ) return 'devtools/devtools.js'
26- if ( chunkInfo . name === 'content' ) return 'content/content.js'
27- if ( chunkInfo . name === 'background' ) return 'background/background.js'
28- if ( chunkInfo . name === 'injected' ) return 'injected/injected.js'
29- return 'assets/[name]-[hash].js'
25+ if ( chunkInfo . name === "content" ) return "content.js" ;
26+ if ( chunkInfo . name === "background" ) return "background.js" ;
27+ if ( chunkInfo . name === "injected" ) return "injected.js" ;
28+ return "assets/[name]-[hash].js" ;
3029 } ,
31- chunkFileNames : ' assets/[name]-[hash].js' ,
32- assetFileNames : ' assets/[name]-[hash].[ext]'
33- }
34- }
35- }
36- } )
30+ chunkFileNames : " assets/[name]-[hash].js" ,
31+ assetFileNames : " assets/[name]-[hash].[ext]" ,
32+ } ,
33+ } ,
34+ } ,
35+ } ) ;
0 commit comments