Created
September 9, 2016 15:30
-
-
Save Netzberufler/857298404387df1a1b4a0ff1dbeba99a to your computer and use it in GitHub Desktop.
Gulpfile: Erster Einstieg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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