gulp listener on remotecontroller too, and updated remotecontroller.js

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-24 20:07:29 +02:00
parent 28ee75c750
commit 0dabed6f07
8 changed files with 29 additions and 16 deletions

View File

@@ -25,7 +25,19 @@ gulp.task('nochan', function () {
.pipe(gulp.dest('../static/build-js'));
});
gulp.task('remotecontroller', function () {
gulp.src(['../static/js/remotecontroller.js'])
.pipe(uglify({
mangle: true,
compress: true,
enclose: true
}))
.pipe(concat('remotecontroller-min.js'))
.pipe(gulp.dest('../static/build-js'));
});
gulp.task('default', function(){
gulp.watch('../static/js/*.js', ['js']);
gulp.watch('../static/js/nochan.js', ['nochan']);
gulp.watch('../static/js/remotecontroller.js', ['remotecontroller']);
});

View File

@@ -4,7 +4,7 @@ var server;
This if for the localhost running
******/
localhost = false;
localhost = true;
//https server
if(localhost)