Skip to content
Snippets Groups Projects
Commit ce2319ed authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Bugfixes in gulpfile.

parent 7f31057f
No related branches found
No related tags found
No related merge requests found
...@@ -175,6 +175,8 @@ gulp.task('fonts', function copy () { ...@@ -175,6 +175,8 @@ gulp.task('fonts', function copy () {
gulp.task('collectstatic', function (collect) { gulp.task('collectstatic', function (collect) {
exec('python manage.py collectstatic --no-post-process --noinput --verbosity 0', function (err, stdout, stderr) { exec('python manage.py collectstatic --no-post-process --noinput --verbosity 0', function (err, stdout, stderr) {
collect(err); collect(err);
// console.log(stdout);
// console.log(stderr);
}); });
}); });
...@@ -203,9 +205,9 @@ gulp.task('watch:fonts', gulp.series('fonts', function watch () { ...@@ -203,9 +205,9 @@ gulp.task('watch:fonts', gulp.series('fonts', function watch () {
return gulp.watch(options.theme.font + '**/*.*', options.gulpWatchOptions, gulp.series('fonts')); return gulp.watch(options.theme.font + '**/*.*', options.gulpWatchOptions, gulp.series('fonts'));
})); }));
gulp.task('watch:static', gulp.series('collectstatic', function watch () { gulp.task('watch:static', function watch () {
return gulp.watch(options.theme.dest + '**/*.*', options.gulpWatchOptions, gulp.series('collectstatic')); return gulp.watch(options.theme.dest + '**/*.*', options.gulpWatchOptions, gulp.series('collectstatic'));
})); });
gulp.task('watch', gulp.parallel('watch:css', 'watch:lint:sass', 'watch:js', 'watch:lint:js', 'watch:images', 'watch:fonts', 'watch:static')); gulp.task('watch', gulp.parallel('watch:css', 'watch:lint:sass', 'watch:js', 'watch:lint:js', 'watch:images', 'watch:fonts', 'watch:static'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment