Vite + shadcn/ui without TypeScript #8398
codayon
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Step 1: Initialize a Vite project with React
I will be using
npmas package manager. But you can choose whatever you preferences are:Step 2: Install dependencies then setup Tailwind CSS
cd new-app npm install npm install tailwindcss @tailwindcss/viteIn
src/index.cssinsert the following line:Step 3: Setup import alias
Create a
jsconfig.jsonin the root and insert the following lines:{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./src/*"] } } }Edit
vite.config.jsas followed:Step 4: Initialize shadcn/ui
Beta Was this translation helpful? Give feedback.
All reactions