You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
568 B
18 lines
568 B
6 years ago
|
var gulp = require('gulp'),
|
||
|
uglify = require('gulp-uglify');
|
||
|
var concat = require('gulp-concat');
|
||
|
|
||
|
gulp.task('minify', function () {
|
||
|
gulp.src(['../jquery-1.3.2.js','angular.js', 'angular-route.js', 'angular-sanitize.min.js'])
|
||
|
.pipe(uglify())
|
||
|
.pipe(concat('angular.all.min.js'))
|
||
|
.pipe(gulp.dest('build'))
|
||
|
});
|
||
|
|
||
|
gulp.task("default", function(){
|
||
|
gulp.src(['app.js','others/factory.js','others/filter.js', 'controllers/*.js', 'directives/*.js', 'others/routes.js'])
|
||
|
.pipe(uglify())
|
||
|
.pipe(concat('app.min.js'))
|
||
|
.pipe(gulp.dest('build'))
|
||
|
});
|