fix gulp oauth build process

This commit is contained in:
Florian BLOUET
2015-11-25 16:43:53 +01:00
parent 3a785d6d44
commit 2bb64981b7

View File

@@ -1,12 +1,13 @@
var gulp = require('gulp'); var gulp = require('gulp');
var config = require('../config.js'); var config = require('../config.js');
var utils = require('../utils.js'); var utils = require('../utils.js');
var debugMode = false;
gulp.task('watch-oauth-css', function() { gulp.task('watch-oauth-css', function() {
debugMode = true; debugMode = true;
gulp.watch(config.paths.src + 'oauth/**/*.scss', ['build-oauth']); gulp.watch(config.paths.src + 'oauth/**/*.scss', ['build-oauth']);
}); });
gulp.task('build-oauth', function () { gulp.task('build-oauth', function () {
debugMode = false;
return utils.buildCssGroup([config.paths.src + 'oauth/main.scss'], 'oauth', 'oauth/css/', debugMode); return utils.buildCssGroup([config.paths.src + 'oauth/main.scss'], 'oauth', 'oauth/css/', debugMode);
}); });