gruntjs/grunt-contrib-uglify

Minify files with UglifyJS.

Hosted by OpenJS Foundation · part of Linux Foundation

View on GitHub ↗Jump to charts ↓

gruntjs/grunt-contrib-uglify has 1k+ stars and 300+ forks on GitHub, is written in JavaScript, and was last pushed on Jun 22, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Type:Plugin / ExtensionCategory(s):Build Systems & Package ManagersDeveloper Tools
Added to GitGenius on October 15th, 2026
Created on October 3rd, 2012
Open Issues & Pull Requests: 30 (+0)
GitHub issues: Enabled
Number of forks: 343
Total Stargazers: 1,464 (+0)
Total Subscribers: 46 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 23.2 days
Mean response time: 57.2 days
90th percentile: 91.3 days
Tracked items: 2

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 986 days
Stale 30+ days: 3
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

grunt-contrib-uglify is a Grunt plugin that minifies JavaScript files using UglifyJS.

The plugin solves the problem of reducing JavaScript file size for production deployment. It wraps UglifyJS functionality within Grunt's task system, allowing developers to configure minification as part of their build pipeline. The tool delegates directly to UglifyJS for the actual minification work, supporting options for name mangling, compression, beautification, and source map generation. Developers can customize behavior through Grunt's standard configuration syntax, with options passed through to UglifyJS's underlying compressor.

The tool suits projects already using Grunt as their build system. It works well for teams wanting straightforward JavaScript minification integrated into existing Grunt workflows without adopting a newer build tool. The plugin is appropriate for projects that need source maps for debugging minified code in production, as it can generate them alongside minified output. Adoption makes sense if your project's build process centers on Grunt; if you are evaluating build systems from scratch, you should consider whether Grunt itself remains the right choice for your needs.

The project maintains active test coverage through continuous integration workflows. The codebase includes a deprecation path, having migrated option names from version 2.x to align with UglifyJS's current API structure, showing attention to backward compatibility during upgrades.