1. broccoli-uglify-js
UglifyJS2 filter for Broccoli
broccoli-uglify-js
Package: broccoli-uglify-js
Created by: joliss
Last modified: Mon, 13 Jun 2022 05:08:27 GMT
Version: 0.2.0
License: MIT
Downloads: 1,400
Repository: https://github.com/joliss/broccoli-uglify-js

Install

npm install broccoli-uglify-js
yarn add broccoli-uglify-js

broccoli-uglify-js

UglifyJS2 filter for Broccoli.

Installation

 npm install --save-dev broccoli-uglify-js

Usage

 var uglifyJavaScript = require('broccoli-uglify-js');
tree = uglifyJavaScript(tree, options);

Options

The following options are supported:

  • mangle (passed through to UglifyJS): pass false to skip mangling names

  • compress (passed through to UglifyJS): pass false to skip compressing;
    pass an object to specify compressor
    options

  • output (passed through to UglifyJS): pass an object to specify additional
    output options

To Do

  • Enable ascii_only by default

Source Maps

Source maps are not yet supported.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code