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