File tree Expand file tree Collapse file tree 5 files changed +28
-5
lines changed Expand file tree Collapse file tree 5 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 88 </ head >
99 < body >
1010 < div id ="root "> </ div >
11- < script type ="module " src ="/src/pages/ admin/main.tsx "> </ script >
11+ < script type ="module " src ="/admin/main.tsx "> </ script >
1212 </ body >
1313</ html >
File renamed without changes.
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < link rel ="icon " type ="image/svg+xml " href ="/src/favicon.svg " />
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7+ < title > raduwen-obs-widget</ title >
8+ </ head >
9+ < body >
10+ < div id ="root "> </ div >
11+ < script type ="module " src ="/preview/main.tsx "> </ script >
12+ </ body >
13+ </ html >
File renamed without changes.
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vite' ;
22import reactRefresh from '@vitejs/plugin-react-refresh' ;
33import tsconfigPaths from 'vite-tsconfig-paths' ;
4- import { resolve } from 'path' ;
4+ import mpa from 'vite-plugin-mpa' ;
5+
6+ var plugins = [ tsconfigPaths ( ) ] ;
7+
8+ if ( process . env . NODE_ENV !== "production" ) {
9+ plugins . push ( reactRefresh ( ) ) ;
10+ plugins . push ( mpa ( {
11+ scanDir : '.'
12+ } )
13+ ) ;
14+ }
515
616// https://vitejs.dev/config/
717export default defineConfig ( {
818 build : {
919 rollupOptions : {
1020 input : {
11- main : resolve ( __dirname , ' index.html') ,
12- admin : resolve ( __dirname , 'admin/index.html' ) ,
21+ preview : 'preview/ index.html',
22+ admin : 'admin/index.html'
1323 }
1424 }
1525 } ,
16- plugins : [ tsconfigPaths ( ) , reactRefresh ( ) ]
26+ plugins,
1727} ) ;
You can’t perform that action at this time.
0 commit comments