Added gulp task for nochan also

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-24 19:51:11 +02:00
parent fc47c8a905
commit 28ee75c750
4 changed files with 17 additions and 5 deletions

View File

@@ -14,6 +14,18 @@ gulp.task('js', function () {
.pipe(gulp.dest('../static/build-js'));
});
gulp.task('nochan', function () {
gulp.src(['../static/js/nochan.js'])
.pipe(uglify({
mangle: true,
compress: true,
enclose: true
}))
.pipe(concat('main-fp.js'))
.pipe(gulp.dest('../static/build-js'));
});
gulp.task('default', function(){
gulp.watch('../static/js/*.js', ['js']);
gulp.watch('../static/js/nochan.js', ['nochan']);
});