initial boilerplate
This commit is contained in:
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'
|
||||
import path from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
// Ensure PostCSS/Vite can resolve the shadcn tailwind CSS file
|
||||
'shadcn/dist/tailwind.css': path.resolve(
|
||||
__dirname,
|
||||
'node_modules/shadcn/dist/tailwind.css'
|
||||
),
|
||||
// Optional: map the package to its dist for other imports
|
||||
shadcn: path.resolve(__dirname, 'node_modules/shadcn/dist'),
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user