whatisgithub

What is uglifyjs-webpack-plugin?

yyx990803/uglifyjs-webpack-plugin — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2017-07-06

4JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

In one sentence

A webpack plugin that automatically compresses and minifies your JavaScript during build, making files smaller and faster to load.

Mindmap

mindmap
  root((uglifyjs-webpack-plugin))
    What it does
      Minifies JavaScript
      Shrinks file size
      Renames variables shorter
    Tech stack
      Webpack
      UglifyJS
      JavaScript
    Use cases
      Faster page loads
      Smaller bundle size
      Custom minification control
    Audience
      Web developers
    Features
      Preserves license comments
      Supports ES5 and ES6
      Extensive config options

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Shrink JavaScript bundle size to reduce download times for users.

USE CASE 2

Get finer control over minification settings than webpack's built-in minifier.

USE CASE 3

Extract license comments to a separate file during the build.

What is it built with?

WebpackUglifyJSJavaScript

How does it compare?

yyx990803/uglifyjs-webpack-pluginarata-ae/purupurupngtubercarrycooldude/nova-ide
Stars444
LanguageJavaScriptJavaScriptJavaScript
Last pushed2017-07-06
MaintenanceDormant
Setup difficultyeasymoderate
Complexity2/53/5
Audiencedevelopergeneralvibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Modern ES6 code requires installing a separate 'harmony' version of UglifyJS.

Copy-paste prompts

Prompt 1
Show me how to add this plugin to my webpack config to minify JavaScript.
Prompt 2
Explain how to install the harmony version of UglifyJS for ES6 support with this plugin.
Prompt 3
Configure this plugin to preserve license comments while minifying my build.

Frequently asked questions

What is uglifyjs-webpack-plugin?

A webpack plugin that automatically compresses and minifies your JavaScript during build, making files smaller and faster to load.

What language is uglifyjs-webpack-plugin written in?

Mainly JavaScript. The stack also includes Webpack, UglifyJS, JavaScript.

Is uglifyjs-webpack-plugin actively maintained?

Dormant — no commits in 2+ years (last push 2017-07-06).

How hard is uglifyjs-webpack-plugin to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is uglifyjs-webpack-plugin for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.