This commit is contained in:
2025-09-25 08:35:23 +04:00
parent db42d71461
commit db20ccaf5f
95 changed files with 14153 additions and 0 deletions

38
vite.config.js Normal file
View File

@@ -0,0 +1,38 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
import fs from 'fs'
// https://vite.dev/config/
export default defineConfig({
base: './',
server: {
host: true,
allowedHosts: ['a6169b9d63c6.ngrok-free.app'],
strictPort: false,
cors: true,
historyApiFallback: true
},
plugins: [
react(),
tailwindcss(),
{
name: 'markdown-loader',
transform(code, id) {
if (id.endsWith('.md')) {
const content = fs.readFileSync(id, 'utf-8')
return {
code: `export default ${JSON.stringify(content)};`,
map: null
}
}
}
}
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})