Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- npm create vite@latest my-app -- --template react
- npm install
- npm run dev
- npm install tailwindcss @tailwindcss/vite
- vite.config.js/ts >>
- import { defineConfig } from "vite";
- import react from "@vitejs/plugin-react";
- import tailwindcss from "@tailwindcss/vite";
- // https://vite.dev/config/
- export default defineConfig({
- plugins: [react(), tailwindcss()],
- });
- App.css >>
- @import "tailwindcss";
- .custom {
- @apply border-b-2 border-gray-500 m-auto text-center py-4 text-gray-500;
- }
- yarn create vite my-app --template react
- yarn
- yarn dev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement