Skip to content

Instantly share code, notes, and snippets.

@stewartknapman
Created September 10, 2014 23:22
Show Gist options
  • Save stewartknapman/6fdbfe1d1e4b858eeb99 to your computer and use it in GitHub Desktop.
Save stewartknapman/6fdbfe1d1e4b858eeb99 to your computer and use it in GitHub Desktop.
gulp.task('browserify', function () {
return browserify('./src/js/app.js', {
debug: true, // with source maps
transform: ['brfs', 'uglifyify'] // include file system and uglify before bundle
})
.bundle()
.pipe(source('app.js')) // Pass desired output filename to vinyl-source-stream
.pipe(gulp.dest('./assets/js/')); // Start piping stream to tasks!
});
@stewartknapman
Copy link
Author

Uglifyify doesn't seem to be working. The final app.js is totally un-minified/uglifyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment