일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- tailwind
- setInterval clear
- 데이터테이블 데이터 넣기
- timepicker
- pm2
- 1883
- setInterval 중지
- html #select #option #multiple
- datagridview 직접입력
- AntDesign
- mosquitto.conf
- DataGridView 직접 입력
- invalid data
- 맥 어드레스
- pm2 설치
- 서버동기화
- mosquitto
- allow_anonymouse
- setInterval 외부 정지
- DatePicker
- pm2 상태 확인
- setInterval 정지
- listener 1883
- vite
- pm2 시작
- map이 undefined가 뜰 때
- mySQL_Replication
- pm2 확인
- react
- c# datagridview 데이터 넣기
- Today
- Total
개발 노트
vite 6 + react 19 에 tailwind.css 3.4 + antd 5.24 적용하기 본문
★ 1
npm create vite@latest . -- --template react
★ 2
npm install -D tailwindcss@3 postcss autoprefixer
★ 3 - postcss.config.cjs
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
★ 4
npm i antd
★ 5
npx tailwind init <--- 3.x에서 필요
★ 6 - index.css
@layer tailwind-base, antd;
@layer tailwind-base {
@tailwind base;
}
@tailwind components;
@tailwind utilities;
★ 7 - tailwind.config.js
export default {
content: ["./src/**/*.{html,js,jsx}"],
theme: {
extend: {},
},
plugins: [],
}
★ 8 - vite.config.js , 절대경로
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { resolve } from 'path';
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
],
resolve: {
alias: [
{ find: "@", replacement: "/src" },
{ find: "@components", replacement: "/src/components" },
{ find: "@headers", replacement: "/src/components/headers" },
{ find: "@pages", replacement: "/src/pages" },
{ find: '@', replacement: resolve(__dirname, 'src') },
{ find: '@pages', replacement: resolve(__dirname, 'src/pages') },
],
},
server: {
port: 3000
},
preview: {
port: 8080
}
})
★ 9 - index.css
@layer tailwind-base, antd;
@layer tailwind-base {
@tailwind base;
}
@tailwind components;
@tailwind utilities;
★ 10 - App.css -삭제
'React' 카테고리의 다른 글
next error boundary / global error (0) | 2025.02.12 |
---|---|
next14 - next-auth v5 (0) | 2024.12.09 |
NextAuth 로그인 (0) | 2024.12.03 |
Next auth와 Bearer 토큰 (0) | 2024.11.28 |
next-auth (2) | 2024.10.31 |