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

배포된 사이트에서 코드가 모두 노출되어 있습니다. #44

Open
deprecated-hongbiii opened this issue Aug 13, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@deprecated-hongbiii
Copy link
Member

해결 방법 제안

보안 부분이나 최적화 부분에서 코드 난독화와 압축이 필요해보입니다.

학습할 키워드

  • 난독화 (uglify)
  • 압축 (minify)
@deprecated-hongbiii deprecated-hongbiii added the enhancement New feature or request label Aug 13, 2021
@deprecated-hongbiii
Copy link
Member Author

문제점1: 빌드할 때는 webpack 모드를 production으로 바꿔야 한다.
문제점2: production 모드와 development 모드에서의 설정을 다르게 해줘야 한다.

현재는 모드가 development 하나이고, 소스맵을 사용하도록 설정이 되어있기 때문에 번들링과 난독화가 되었음에도 원본 코드가 다 노출이 됐던 것이다.

@somedaycode 김선규님께서 도움주셨습니다.

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

No branches or pull requests

1 participant