AGENT SKILL

uglify-js

Use this skill when the user wants to minify JavaScript files for production — reduce bundle size, rename variables, remove dead code, and generate source maps.

License 许可
MIT
所属仓库
javimosch/supercli
最近更新
2026-11-02
Stars
★ 57
Forks
5

01 前言 Front Matter

name
uglify-js
description
Use this skill when the user wants to minify JavaScript files for production — reduce bundle size, rename variables, remove dead code, and generate source maps.

03 SKILL.md 正文

UglifyJS Plugin

UglifyJS minifies and compresses JavaScript files. Removes whitespace, shortens variable names, eliminates dead code, and optimizes expressions for smaller production bundles.

Commands

  • uglify-js _ _ <args> — Passthrough

Usage Examples

  • "minify app.js to app.min.js"
  • "minify with source map support"
  • "compress multiple JS files into one"
  • "beautify/minified code for debugging"

Installation

npm install -g uglify-js

Key Features

  • Whitespace removal and variable mangling
  • Dead code elimination
  • Expression and statement optimization
  • Source map generation
  • Multiple input concatenation
  • Beautify output option
  • Compression level control
  • CLI batch processing

04 同仓库更多 Skills