본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #2902

javascript-minification

하는 일

이 스킬은 방문자에게 전달되는 JavaScript가 압축되어 있고 사용하지 않는 코드가 제거되었는지 확인합니다. 더 빠르고 가벼운 운영 사이트를 원하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓운영용 JavaScript 파일이 필요 이상으로 클 때.
  • ✓빌드 도구가 운영용 압축을 하도록 설정되어 있지 않을 때.
  • ✓번들에서 사용하지 않는 코드를 제거하고 싶을 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/javascript-minification/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/javascript-minification/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 운영용 JavaScript가 압축되어 있는지 확인해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 운영 빌드 설정을 확인하고, Terser 같은 압축 도구와 사용하지 않는 코드를 없애는 tree-shaking을 제안합니다. 결과물이 더 작아졌는지도 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Minify all JavaScript files

Unminified JavaScript adds hundreds of KB to page weight, slowing down load times especially on mobile networks where every byte counts.

Quick Reference

  • Enable minification in your build tool (Vite, webpack, etc.)
  • Use Terser for modern JavaScript minification
  • Enable tree-shaking to remove unused code
  • Typical reduction: 50-70% file size savings

Check

Verify that all JavaScript files are minified in production to reduce file size, remove comments, and optimize code for faster loading and execution.

Fix

Configure your build system to minify JavaScript files using tools like Terser, UglifyJS, or built-in framework minification for production deployment.

Explain

Explain how JavaScript minification improves website performance by reducing bundle sizes, eliminating dead code, and optimizing parsing speed.

Code Review

Review scripts, client components, and browser execution paths related to Minify all JavaScript files. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/javascript/javascript-minification

자주 묻는 질문

파일이 얼마나 작아질 수 있나요?

스킬은 압축으로 파일 크기가 보통 50~70% 줄어든다고 설명합니다.

tree-shaking이란 무엇인가요?

최종 번들에서 사용하지 않는 코드를 제거해, 방문자가 내려받는 양을 줄입니다.

어떤 도구가 언급되나요?

스킬은 Terser, UglifyJS, 그리고 프레임워크에 내장된 압축 기능을 언급합니다.

상세 정보

작성자의 원본 설명

Use when reviewing scripts, client components, bundles, or runtime behavior related to Minify all JavaScript files. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#2902
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬