개발/Spring
sts에서 웹 빌드본 톰캣 적용하는 방법
Hide
2024. 6. 26. 20:27
1. 개발경로\html 의 node_modules 폴더를 제거
2. vscode 터미널에서 순서대로 진행
3. npm install --ignore-scripts
4. set NODE_OPTIONS="--max-old-space-size=8192"
5. npm run build:prod
6. 빌드 성공시, 개발경로html 의 dist폴더가 생성됨.
7. dist 폴더 내용물이 html 빌드 파일
tomcat7 > webapps > html 에 넣기
개발서버 톰캣에
모듈에 /해서 위 경로 넣기