react CRA - craco (react 환경설정 덮어씌우기)

sangwoo noh·2022년 9월 24일
0

ReactJS

목록 보기
13/16

craco?

  • 공식문서에서 설명하길 굳이 eject를 하지 않고 환경 설정을 덮어씌우거나 재구성 할 수 있다고 설명한다
# 본문 내용
Create React App Configuration Override is an easy and comprehensible configuration layer for create-react-app.

Get all the benefits of create-react-app and customization without using 'eject' by adding a single configuration (e.g. craco.config.js) file at the root of your application and customize your eslint, babel, postcss configurations and many more.

All you have to do is create your app using create-react-app and customize the configuration file.

craco.config.js 파일에서 각종 설정을 구성하면 CRA의 기본 config를 덮어씌울 수 있다.

위 공식 문서에서 각종 예시가 아주 잘 나와있으니 잘보고 적용하면 되겠다.

profile
하기로 했으면 하자

0개의 댓글