Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- MUI
- 안드로이드 빌드 안됨
- 백틱
- marquee
- gitbash
- for문
- 반복문
- 연결리스트
- AI
- Intellij
- Vue
- 인텔리제이
- 운영체제
- 안드로이드 빌드 안될때
- 잠시만조용히
- 인공지능
- 로그
- 부팅디스크
- Linked List
- CentOS
- Linux
- rufus
- While문
- CentOS7
- 아오
- 한글깨짐
- GIT
- 핫모듈
- 자바
- 깃
Archives
- Today
- Total
새끼 개발자의 Life is egg
React 배포 난독화 본문
package.json 파일에서 build 부분을 수정한다.
리눅스
"scripts": {
"start": "react-scripts start",
"build": "GENERATE_SOURCEMAP=false react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
윈도우
"scripts": {
"start": "react-scripts start",
"build": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
이렇게 설정하고 npm run build 하면 sourcemap 없는 빌드 결과물을 얻는다
*.css.map / *.js.map
'개발's egg > Javascript' 카테고리의 다른 글
React Native NetInfo Error (0) | 2023.07.13 |
---|---|
axios 서버에서 에러때렸는데 then도 타고 catch도 타고 왜죠? (0) | 2023.05.24 |
Spring boot, React 배포 (with Nginx) (0) | 2023.04.13 |
React에서 proxy 여러개 필요할때 (0) | 2023.04.13 |
Javascript Dom Empty (0) | 2023.03.10 |
Comments