728x90
composer 이용
1. cmd 창에
composer create-project laravel/laravel cake(파일 이름)
2. 터미널에서
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
3. tailwind.config.js 에서
module.exports = {
content: [
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./resources/**/*.vue",
],
추가해주기
4. resources app.css
@tailwind base;
@tailwind components;
@tailwind utilities;
추가해주기
5. npm run dev 실행
6. php artisan serve 실행
7. @vite 구문 헤더에 넣어주기
@vite('resources/css/app.css')
728x90
'PHP > Laravel' 카테고리의 다른 글
Laravel(라라벨) 9 버전 : Task Controller에서 list 순서 역순으로 가져오는 법 (0) | 2023.06.05 |
---|---|
Laravel(라라벨) 9 버전 기본적인 mvc 나누기 (0) | 2023.05.31 |
Laravel(라라벨) 9 버전 로그인, 회원가입 기능 넣기 (0) | 2023.05.31 |
Laravel : 라라벨 프레임워크 구조 (0) | 2023.04.05 |
Laravel : 설치 및 실행과정 (0) | 2023.04.05 |