Skip to content

Instantly share code, notes, and snippets.

@andersoonweb
Created September 12, 2015 17:54
Show Gist options
  • Save andersoonweb/9ca04bd018c2090c73c3 to your computer and use it in GitHub Desktop.
Save andersoonweb/9ca04bd018c2090c73c3 to your computer and use it in GitHub Desktop.
var gulp = require ( 'gulp' );
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var notify = require( 'gulp-notify' );
gulp.task( 'scripts', function(){
gulp.src( './assets/js/*.js' )
.pipe( concat('main.js') )
.pipe( gulp.dest('./assets/javascript/') )
.pipe( notify( 'Minificado com sucesso!!!' ) );
});
gulp.task( 'default', function(){
gulp.watch( './assets/js/*.js', ['scripts'] );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment