Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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