Init Commit
This commit is contained in:
commit
93ff8356ce
26 changed files with 667 additions and 0 deletions
19
vite.config.ts
Normal file
19
vite.config.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react-swc'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
// Custom plugin to load markdown files
|
||||
{
|
||||
name: "markdown-loader",
|
||||
transform(code, id) {
|
||||
if (id.slice(-3) === ".md") {
|
||||
// For .md files, get the raw content
|
||||
return `export default ${JSON.stringify(code)};`;
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue