From 2629dc0c1e19766985693e4f43d2c31bb9ea246f Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Mon, 24 Sep 2018 15:25:33 +0200 Subject: [PATCH] Remove unneeded gulp-exec and just run the command. --- gulpfile.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ab1fe40d3..116d1e887 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -60,7 +60,8 @@ var gulp = require('gulp'), // gulp-load-plugins will report "undefined" error unless you load gulp-sass manually. sass = require('gulp-sass'), cleanCSS = require('gulp-clean-css'), - touch = require('gulp-touch-cmd'); + touch = require('gulp-touch-cmd'), + exec = require('child_process').exec; // The sass files to process. var sassFiles = [ @@ -171,8 +172,10 @@ gulp.task('fonts', function copy () { }); // Run Djangos collectstatic command. -gulp.task('collectstatic', function exec () { - return gulp.src(options.theme.font + '**/*.*').pipe($.exec('python manage.py collectstatic --noinput -v0')); +gulp.task('collectstatic', function (collect) { + exec('python manage.py collectstatic --no-post-process --noinput -v0', function (err, stdout, stderr) { + collect(err); + }); }); // Watch for changes and rebuild. -- GitLab