728x90 반응형 create-react-app1 [Node.js] Package.json 명령어 npm start, npm run build 스크립트 차이점 package.json 파일 실행 스크립트start, build, test, eject 4가지 명령이 있습니디. 일반적으로 start는 개발 모드 build는 배포용 빌드라고 알고 있습니다. npm startnpm run buildnpm testnpm run eject"scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject"}, npm start개발 모드로 프로그램을 실행하는 명령어 입니다. HMR(hot-module-replacement)가 동작해 수정과 동시에 화면이 변경됩니다. 개발 모드에서 코드에 에러거 .. 2024. 8. 9. 이전 1 다음 728x90 반응형