Coder Social home page Coder Social logo

broccoli-uglify-js's Introduction

broccoli-uglify-js

This package is deprecated in favor of broccoli-uglify-sourcemap.

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.

broccoli-uglify-js's People

Contributors

joefiorini avatar joliss avatar shajith avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

broccoli-uglify-js's Issues

Question: Incremental Builds

I have a huge application at work and we're trying to speed up our grunt build. One of the bottlenecks is our uglify task. Part of the reason is we're minifying vendor files like jQuery, Angular, lodash, d3, etc every time we run the build.

My question is, I don't see broccoli-caching-writer as a dependency so I'm wondering if using this plugin would give us incremental builds. Thanks!

NSP Vulnerabilities

Hi Guys

Ive been running nsp on my projects and im getting a vulnerability warning for broccoli-uglify

┌───────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│               │ Regular Expression Denial of Service                                                                                               │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Name          │ uglify-js                                                                                                                          │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Installed     │ 2.4.24                                                                                                                             │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Vulnerable    │ <2.6.0                                                                                                                             │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Patched       │ >=2.6.0                                                                                                                            │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Path          │ [email protected] > [email protected] > [email protected]                                                                │
├───────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ More Info     │ https://nodesecurity.io/advisories/48                                                                                              │
└───────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

preserveComments option support

There is no way to avoid comments removing during minification, it would be great if uglifier could support preserveComments option

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.