presets 라라벨 프론트엔드 프리셋

presets 라라벨 프론트엔드 프리셋

php artisan help preset : 프리셋 명령어 사용방법

type (none, bootstrap, vue, react)

리액트 설정----------------------------

php artisan preset react

npm install

package.json 파일을 보면 의존성이 설치되어있다.

resources/js/components/Example.js 생성

none 설정-------------------------------

php artisan preset none

resources/sass/app.scss 파일에가면 텅빈것을 확인 할 수 있다.

bootstrap 설정------------------------

php artisan preset bootstrap

resources/sass/app.scss 파일을 보면 부트스트랩을 가져오고 있습니다.

vue 설정------------------------

php artisan preset vue

resources/js/app.js 파일을 열어보면 vue로 설정되어있다.

resources/sass/app.scss 파일을 보면 부트스트랩을 가져오고 있습니다.

https://github.com/laravel-frontend-presets

tailwindcss 로 들어가자~ 설치방법이 나와있다.

composer require laravel-frontend-presets/tailwindcss --dev

from http://anko3899.tistory.com/259 by ccl(A) rewrite - 2021-10-28 03:00:52