Skip to content

Commit 66364ff

Browse files
committed
Update build script to include TypeScript compilation and adjust Vite configuration for HTML mode
1 parent 377313d commit 66364ff

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "vite build",
8+
"build": "tsc && vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview"
1111
},

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import react from '@vitejs/plugin-react';
33
import { plugin as markdown } from 'vite-plugin-markdown';
44

55
export default defineConfig({
6+
base: '/DDH2004.github.io/', // Add this line with your repo name
67
plugins: [
78
react(),
89
markdown({
9-
mode: ['react', 'raw'] // This enables both React components and raw string imports
10+
mode: 'html' // Using just html mode to avoid TypeScript errors
1011
})
1112
]
1213
});

0 commit comments

Comments
 (0)