Web/React

eject

__bo0o_ 2021. 11. 23. 04:18

eject는 아직 git에 commit이 되지 않은 변화가 있다면 진행되지 않기 때문에 

먼저 변경 사항을 커밋한 후, eject을 실행해주어야한다.

 

git add .
git commit -m "Commit before npm run eject"
npm run eject
Are you sure you want to eject? This action is permanent. » (y/N)  
y

 

customizing 등 가능

webpack.config.js

sassRegex 수정하면

@import 'utils.scss'; 이런식으로 사용 가능

 

 

https://xtring-dev.tistory.com/55

https://stackoverflow.com/questions/48854585/error-with-run-npm-run-eject-error-remove-untracked-files-stash-or-commit-a

반응형

'Web > React' 카테고리의 다른 글

Next.js 고정 스타일링, styled-components 설치 및 사용법  (2) 2022.02.05
Next.js styled-jsx 사용법  (0) 2022.01.28
scss 설치 및 사용법  (0) 2021.11.23
.prettierrc  (0) 2021.11.23
.map, _lodash  (0) 2021.07.06