File tree 3 files changed +25
-17
lines changed
3 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 1
- <!doctype html>
1
+ <!DOCTYPE html>
2
2
< html lang ="en ">
3
- < head >
4
- < meta charset ="UTF-8 " />
5
- < link rel =" icon " type =" image/svg+xml " href =" /vite.svg " />
6
- < meta name =" viewport " content =" width=device-width, initial-scale=1.0 " / >
7
- < title > Akhil Devarasetty | CSE Student & Developer </ title >
8
- < meta name =" description " content =" Personal website of Akhil Devarasetty - Computer Science and Engineering Student " >
9
- </ head >
10
- < body >
11
- < div id ="root "> </ div >
12
- < script type ="module " src ="/src/main.tsx "> </ script >
13
- </ body >
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta name =" viewport " content =" width=device-width, initial-scale=1.0 " />
6
+ < title > Akhil Devarasetty </ title >
7
+ <!-- Preload JS with proper type -- >
8
+ < link rel =" modulepreload " href =" ./src/main.tsx " as =" script " type =" text/javascript " / >
9
+ </ head >
10
+ < body >
11
+ < div id ="root "> </ div >
12
+ < script type ="module " src =". /src/main.tsx "> </ script >
13
+ </ body >
14
14
</ html >
Original file line number Diff line number Diff line change 4
4
"version" : " 0.0.0" ,
5
5
"type" : " module" ,
6
6
"scripts" : {
7
- "predeploy" : " npm run build" ,
8
- "deploy" : " gh-pages -d dist" ,
9
7
"dev" : " vite" ,
10
8
"build" : " tsc && vite build" ,
11
9
"lint" : " eslint ." ,
Original file line number Diff line number Diff line change @@ -3,11 +3,21 @@ import react from '@vitejs/plugin-react';
3
3
import { plugin as markdown } from 'vite-plugin-markdown' ;
4
4
5
5
export default defineConfig ( {
6
- base : '/DDH2004.github.io /' , // Add this line with your repo name
6
+ base : '. /' , // Change from '/DDH2004.github.io/' to './'
7
7
plugins : [
8
8
react ( ) ,
9
9
markdown ( {
10
- mode : 'html' // Using just html mode to avoid TypeScript errors
10
+ mode : 'html'
11
11
} )
12
- ]
12
+ ] ,
13
+ build : {
14
+ rollupOptions : {
15
+ output : {
16
+ // Ensure proper extensions for all files
17
+ entryFileNames : 'assets/[name]-[hash].js' ,
18
+ chunkFileNames : 'assets/[name]-[hash].js' ,
19
+ assetFileNames : 'assets/[name]-[hash].[ext]'
20
+ }
21
+ }
22
+ }
13
23
} ) ;
You can’t perform that action at this time.
0 commit comments