8000 Tags · FGasper/UglifyJS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: FGasper/UglifyJS

Tags

v1.1.1

Toggle v1.1.1's commit message
add final semicolon (closes #126)

v1.1

Toggle v1.1's commit message
fixed version for NPM

v1.0.7

Toggle v1.0.7's commit message
version 1.0.7

v1.0.6

Toggle v1.0.6's commit message
version 1.0.6

v1.0.5

Toggle v1.0.5's commit message
version 1.0.5

v1.0.4

Toggle v1.0.4's commit message
fixed mangling of lambda names (regressed as of ae88177)

fixes #165

v1.0.3

Toggle v1.0.3's commit message
mangled name of a function expression should not clash with a name in…

… the

parent scope, in order to deal with a 15 years-old IE bug. (fixes #161)

thanks everyone for the discussion and patience!

v1.0.2

Toggle v1.0.2's commit message
simple "make" utility. ideas welcome.

For now, write a Makefile.uglify.js file with contents like this:

    {
      files: [
        { name: "foo.js", module: "Foo" },
        { name: "bar.js", hide: true }
      ]
    }

If you run uglifyjs --make it will read and compress foo.js and wrap it like
this:

    (function(){ return this })().Foo = (function(exports, global){
        ... compressed contents of foo.js ...
    })({}, (function(){ return this })());

as for bar.js it'll wrap like this:

    (function(){
        ... compressed contents of bar.js ...
    })()

Both of them are concatenated and returned.

The "module" is thus useful to use libraries designed for a CommonJS
environment in browser.

This is just a quick hack as I needed it fast, but the plan is to evolve
it—handle compressor options in the Makefile, additional possibilities to
wrap the files, maybe handle require(...).

v1.0.1

Toggle v1.0.1's commit message
NPM changes

v1.0

Toggle v1.0's commit message
transform a["123"] into a[123] (fixes #107)

0