Skip to content

Instantly share code, notes, and snippets.

@Netzberufler
Created September 9, 2016 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Netzberufler/857298404387df1a1b4a0ff1dbeba99a to your computer and use it in GitHub Desktop.
Save Netzberufler/857298404387df1a1b4a0ff1dbeba99a to your computer and use it in GitHub Desktop.
Gulpfile: Erster Einstieg
// Load Gulp
var gulp = require('gulp');
// Load Plugins
var rename = require( 'gulp-rename' );
var uglify = require( 'gulp-uglify' );
// Minify JS
gulp.task( 'minifyjs', function() {
return gulp.src( ['js/navigation.js'] )
.pipe( uglify() )
.pipe( rename( { suffix: '.min' } ) )
.pipe( gulp.dest('js') );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment