Skip to content

Instantly share code, notes, and snippets.

@zsitro
Created October 1, 2014 07:37
Show Gist options
  • Save zsitro/1fade2cda9b525398ee6 to your computer and use it in GitHub Desktop.
Save zsitro/1fade2cda9b525398ee6 to your computer and use it in GitHub Desktop.
Optimize w/ refactoring

vendor.js is ~1.6MB, loads in ~195ms

##Step 1

	.pipe(plugins.rename('vendor.js'))
+	.pipe(plugins.uglify())
	.pipe(gulp.dest('./dist/scripts'));

result: 646kB, ~100ms

Step 2

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