deepak1556 / gulp-browserify

Bundle modules with BrowserifyJS
MIT License
195 stars 45 forks source link

uglifyify support #60

Closed indolering closed 10 years ago

indolering commented 10 years ago

It compresses Browserify without destroying the source-map files.

shuhei commented 10 years ago

Doesn't it work with transform option?

shuhei commented 10 years ago

You can also pass args to transforms like transform: [[{ global: true }, 'uglifyify']]

indolering commented 10 years ago

I JUST got that working! Should I change transform: ['uglifyify'], 'global-transform': true to transform: [[{ global: true }, 'uglifyify']]?

Also, I do not think

    .pipe(browserify({
      insertGlobals: false,
      debug: true,
      transform: ['uglifyify'],
      'global-transform': true
    }))