Skip to content

Instantly share code, notes, and snippets.

@jdx
Last active August 29, 2015 14:00
Show Gist options
  • Save jdx/11409088 to your computer and use it in GitHub Desktop.
Save jdx/11409088 to your computer and use it in GitHub Desktop.
gulpfile for angular.js
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var ngmin = require('gulp-ngmin');
gulp.task('scripts', function() {
return gulp.src(['src/**/module.js', 'src/**/*.js'])
.pipe(concat('app.js'))
.pipe(ngmin())
.pipe(uglify())
.pipe(gulp.dest('dist'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment