Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

윈도우 환경 NODE_ENV 명령 실행 안될때 cross-env패키지로 해결 #15

Open
Eyes0n opened this issue Dec 2, 2020 · 0 comments

Comments

@Eyes0n
Copy link

Eyes0n commented Dec 2, 2020

안녕하세요? 녹화된 영상으로 프론트엔드 개발 환경 이해를 듣고 있습니다.
많은 분들이 아실지도 모르지만 저와 같은 초보자를 위해 이렇게 글을 씁니다.
윈도우 환경에서 NODE_ENV=production && npm run build 명령은 실행되지 않습니다.

이를 실행하기 위해서 cross-env 패키지를 설치해주고 package.json script"build": cross-env set NODE_ENV=production npm run build를 설정해주고 해당 명령을 쳐야 실행됩니다.

이 부분을 추가해주시면 저와 같은 또다른 초심자에게 도움이 될거 같아 글을 남깁니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant